mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🔧 Return always a shader on merge_fills for consistency
This commit is contained in:
committed by
Belén Albeza
parent
03adbc2ae8
commit
5e6ce9172f
@@ -231,7 +231,8 @@ pub fn merge_fills(fills: &[Fill], bounding_box: Rect) -> skia::Paint {
|
||||
let mut fills_paint = skia::Paint::default();
|
||||
|
||||
if fills.is_empty() {
|
||||
fills_paint.set_color(skia::Color::TRANSPARENT);
|
||||
combined_shader = Some(skia::shaders::color(skia::Color::TRANSPARENT));
|
||||
fills_paint.set_shader(combined_shader);
|
||||
return fills_paint;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user