KSPModdingLibs/KSPCommunityFixes

Rotating a part in the VAB flipping the model

Opened this issue · 2 comments

Visible on parts with asymmetric textures like the stock mk2 rocket fuel fuselage.
In this video, I've just pressed w 4 times, and after two presses, a 180 degree rotation, the black stripes are still showing on the same side as on the initial position, except the part is upside down.

KSP_x64_joUl7BXSlT.mp4

I've also had it happen after rolling right with e once, then spinning the part with d. In this video I press e once, then d only

KSP_x64_kaU5d3k6hD.mp4

Attached parts are rotated correctly.

It's more of an issue with more asymmetric parts like this X-15 fuselage, where the tan lines near the rear should be on the bottom, but rotating it around they will occasionally swap to the top. It even stops happening after a while too (0:25+ in this video it stops happening).

KSP_x64_dt5wrtfvTG.mp4

And after it's been flipped, the transform-based nodes are also flipped - though the attached fin is still on "top" (relative to the cockpit)
image

I don't know why it doesn't affect less symmetrical parts, like the cockpits, even the mk2 in-line.

It seems having mirrorRefAxis = 0, 0, -1 in the part cfg is what causes it. Removing it fixes the part rotation bug, but then the part attaches in mirror symmetry without flipping the symmetry partner.