TweakScale

TweakScale

1M Downloads

Chain Scaling Parts with variants are borking when the parent part is "inverted"

Lisias opened this issue · 1 comments

commented

This is a follow up from #175 .

While chain scaling (and while scaling one part alone, as long the same circumstances are met), the repositioning of the parts are failing. This started to happen after commit 9783c4b that fixed #175, what implies that fixing this issue must be done carefully to avoid breaking #175 again.

screenshot5

With chain scale active, downscale the root part (the capsule):

screenshot7

Without parts "inverted", this doesn't manifests:

screenshot6

What suggests I'm missing something on the VariantPartScaler.MovePart.

Crafts:

commented

This incredibly annoying bug was fixed by an incredibly simple fix on commit 5d631e0

I completely misdiagnosed this one - I was thinking this was related to Variant changing the attachment nodes (that was an issue, but I fixed it), and since this misbehaviour is somewhat similar, I ended up thinking that it was the same problem.

TL;DR: I was translating the attached part (after scaling a part) relative to itself, instead of relative to the part being scaled. When both parts have the same orientation, things work by accident - it was when the parts had different orientations that the mishap triggers itself.

oh well… Fixed. :)