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