armory3d / armory2d

2D Editor
zlib License
83 stars 24 forks source link

Fix the grid size slider #71

Closed MoritzBrueckner closed 2 years ago

MoritzBrueckner commented 2 years ago

One of the two slider issues mentioned in https://github.com/armory3d/armory2d/pull/70 turned out to not be a bug, but rather my fault.

After changing the grid size slider so that it reacts to all changes of the slider's value (to compensate for the slider's apparent change in functionality regarding ui.inputDown), it would not update the visible grid size until the slider was clicked again. This was happening because I didn't realize that changing Editor.gridSize would not update the grid image. One slider issue less :)