TweakScale

TweakScale

1M Downloads

Reactivating TweakScale is disabling the scaling feature for good

Lisias opened this issue ยท 3 comments

commented

Fellow Kerbonaut BTAxis reported on Forum that he/she wasn't being able to use TweakScale after deactivating it (with the Active PAW button).

This is happening because once you deactivate TweakScale, it disables itself (Behaviour.enable = false) to save CPU. But I forgot to reenable it when user activates TweakScale back! ##facepalm

A temporary workaround is to reactivate TweskScale, save the craft and reload it, to the load process will keep enable on true.

commented

UGH!!! I inadvertently messed up with the onFieldChanged delegates for the fields tweakScale and tweakName. ##facepalm

When I implemented the active and available stunt (see commit b7a7c3b for #170), I not only was setting up this delegate many times as I did it using "=" instead of "+=" - so I ended up overwriting the handler OnTweakScaleChanged I had setup on the OnStart (this one made correctly).

Not one of my brightest moments...

commented

Oukey, fixed this and some other lingering idiosyncrasies that were bothering me for some time but I was unwilling to make the change just because.

Commits:

commented

Case closed.