mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 04:38:14 +00:00
🔧 Set fill paint as transparent when there are no fills
This commit is contained in:
parent
6176027263
commit
172c6ad4b8
@ -230,6 +230,11 @@ pub fn merge_fills(fills: &[Fill], bounding_box: Rect) -> skia::Paint {
|
||||
let mut combined_shader: Option<skia::Shader> = None;
|
||||
let mut fills_paint = skia::Paint::default();
|
||||
|
||||
if fills.is_empty() {
|
||||
fills_paint.set_color(skia::Color::TRANSPARENT);
|
||||
return fills_paint;
|
||||
}
|
||||
|
||||
for fill in fills {
|
||||
let shader = get_fill_shader(fill, &bounding_box);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user