mirror of
https://github.com/penpot/penpot.git
synced 2026-05-02 06:38:20 +00:00
🔧 Return always a shader on merge_fills for consistency
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user