🐛 Fix constraints detection on rotated structures

This commit is contained in:
Andrés Moya 2021-06-16 16:28:11 +02:00 committed by Alonso Torres
parent 71759386c5
commit d89a4a1218
2 changed files with 45 additions and 17 deletions

View file

@ -471,14 +471,8 @@
modifiers (assoc modifiers :ignore-geometry? ignore-geometry?)
resized-shape (when (seq children) ; <- don't calculate it if not needed
(gsh/transform-shape
(assoc shape :modifiers (select-keys modifiers
[:resize-origin
:resize-vector]))))
set-child (fn [modif-tree child]
(let [child-modifiers (gsh/calc-child-modifiers shape
resized-shape
child
modifiers)]
(set-modifiers-recursive modif-tree