JonnyOThan / TweakScale

Forked from Gaius Goodspeed's Goodspeed Aerospace Part & TweakScale plugin
Other
3 stars 2 forks source link

Scaling changes behaviour after re-rooting #54

Closed numberlesstim closed 5 months ago

numberlesstim commented 5 months ago

After re-rooting some parts will no longer scale around the right point:

Before re-rooting: before_re_root After re-rooting: after_re_root

Steps to reproduce: ReRootScalingTool.zip

  1. Load the above craft, or place a Mk1-cockpit with 2 fuel tanks attached.
  2. Make sure 'scale children' option is enabled.
  3. Select the scaling tool on the cockpit and drag on the arrows
  4. Observe the craft scaling correctly
  5. Re-root to the second tank, then back to the cockpit.
  6. Repeat step 3.
  7. Observe the craft no longer scaling correctly

This happens with all the possible ways to rescale:

JonnyOThan commented 5 months ago

Repro actually seems simpler:

  1. Place a cockpit and a fuel tank under it
  2. re-root to the fuel tank
  3. start scaling with "scale children" enabled

Interestingly this does not happen if you save and load the craft after the re-root and before scaling