tyoeer / Chaoshead

A level editor, scripting interface, campaign editor, and reverse engineering tool for Levelhead
Apache License 2.0
4 stars 1 forks source link

Pressing "deselect" while something is selected causes a crash #2

Closed slothybutt closed 2 years ago

slothybutt commented 2 years ago

Here's the error log if you need it:

Error

levelEditor/details/selection.lua:29: attempt to call method 'deselect' (a nil value)

Traceback

levelEditor/details/selection.lua:29: in function 'onClick'
ui/widgets/button.lua:106: in function 'onInputDeactivated'
ui/base/container.lua:133: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
...
ui/base/container.lua:126: in function 'inputDeactivated'
ui/base/container.lua:126: in function 'inputDeactivated'
main.lua:36: in function 'inputDeactivated'
libs/tyoeerUtils/input.lua:279: in function 'actionDeactivated'
libs/tyoeerUtils/input.lua:296: in function 'triggerDeactivation'
libs/tyoeerUtils/input.lua:211: in function 'mousereleased'
main.lua:53: in function <main.lua:52>
[C]: in function 'xpcall'
tyoeer commented 2 years ago

I renamed some internal (de)selection stuff in March 2021 (when adding multiselect), forgot to update the button, and somehow never pressed it since. \ Anyway, fixed in the next release.