Group damage regions by area increase

This commit is contained in:
Héctor Ramón Jiménez 2023-04-05 04:10:00 +02:00
parent 6270c33ed9
commit f8cd1faa28
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 199 additions and 108 deletions

View file

@ -178,8 +178,8 @@ impl Primitive {
}
Self::Quad { bounds, .. }
| Self::Image { bounds, .. }
| Self::Svg { bounds, .. }
| Self::Clip { bounds, .. } => bounds.expand(1.0),
| Self::Svg { bounds, .. } => bounds.expand(1.0),
Self::Clip { bounds, .. } => *bounds,
Self::SolidMesh { size, .. } | Self::GradientMesh { size, .. } => {
Rectangle::with_size(*size)
}