pellinor0 / TweakScale

Forked from Gaius Goodspeed's Goodspeed Aerospace Part & TweakScale plugin
29 stars 23 forks source link

limits of tweakables are not updated correctly #19

Closed pellinor0 closed 8 years ago

pellinor0 commented 8 years ago

When scaling a part in the editor, if a scaled value is also tweakable, the tweakable does not update correctly (example: RESOURCE nodes, i.e. tanks).

Right after scaling it still shows the old values, which can lead to clipping of the content against the old limit.

It seems to update correctly when

The rescale does fire a "onEditorShipModified" event, which probably triggered the update in 1.0.5 and before but that seems not to work anymore.

pellinor0 commented 8 years ago

Might be related to #20: maybe these values have been ported to another Tweakable (UI_FloatEdit)?

=> try logging the tweakable type when scaling a value.

pellinor0 commented 8 years ago

fixed by https://github.com/pellinor0/TweakScale/commit/4c15d97570f034dfff12e8857b452c0598db764e (trigger a refresh of the right click menu)