mirror of
https://github.com/penpot/penpot.git
synced 2026-05-25 00:51:49 -04:00
🐛 Fix nested inherited transformations
This commit is contained in:
committed by
Alonso Torres
parent
649efd124e
commit
2fdd3aab98
@@ -27,12 +27,15 @@ fn propagate_children(
|
||||
transform: Matrix,
|
||||
bounds: &HashMap<Uuid, Bounds>,
|
||||
) -> Result<VecDeque<Modifier>> {
|
||||
if identitish(&transform) {
|
||||
return Ok(VecDeque::new());
|
||||
}
|
||||
|
||||
let mut result = VecDeque::new();
|
||||
|
||||
if identitish(&transform) {
|
||||
for child_id in shape.children_ids_iter(true) {
|
||||
result.push_back(Modifier::transform_propagate(*child_id, transform));
|
||||
}
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
for child_id in shape.children_ids_iter(true) {
|
||||
let Some(child) = shapes.get(child_id) else {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user