mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 22:17:58 +00:00
⚡ drop identity matrices before FFI output
This commit is contained in:
parent
6022f070eb
commit
815969f4d0
@ -498,8 +498,11 @@ pub fn propagate_modifiers(
|
||||
}
|
||||
}
|
||||
|
||||
// Drop identity matrices: the reflow-mark inserts a no-op entry for every
|
||||
// descendant of a reflowed subtree; emitting them floods the FFI output.
|
||||
Ok(modifiers
|
||||
.iter()
|
||||
.filter(|(_, val)| !identitish(val))
|
||||
.map(|(key, val)| TransformEntry::from_input(*key, *val))
|
||||
.collect())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user