mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 05:57:56 +00:00
🐛 Fix render stroke caps on drag (#10634)
This commit is contained in:
parent
2c15dcdb84
commit
a006a12ab6
@ -1132,6 +1132,10 @@ impl Shape {
|
||||
.fold(0.0, f32::max)
|
||||
}
|
||||
|
||||
pub fn has_cap_bounds(&self) -> bool {
|
||||
self.cap_bounds_margin() > 0.0
|
||||
}
|
||||
|
||||
pub fn mask_id(&self) -> Option<&Uuid> {
|
||||
self.children.first()
|
||||
}
|
||||
@ -1452,7 +1456,8 @@ impl Shape {
|
||||
}
|
||||
}
|
||||
|
||||
self.blur.is_none()
|
||||
!self.has_cap_bounds()
|
||||
&& self.blur.is_none()
|
||||
&& self.background_blur.is_none()
|
||||
&& self.shadows.is_empty()
|
||||
&& (self.opacity - 1.0).abs() <= 1e-4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user