Fixes editor crashing when editing autotiles issue #24004

This commit is contained in:
David Kennedy 2018-12-06 06:35:38 -03:00
parent a7bd9f050f
commit 29284f628c

View file

@ -600,6 +600,8 @@ void TileSetEditor::_on_textures_added(const PoolStringArray &p_paths) {
} }
void TileSetEditor::_on_edit_mode_changed(int p_edit_mode) { void TileSetEditor::_on_edit_mode_changed(int p_edit_mode) {
draw_handles = false;
creating_shape = false;
edit_mode = (EditMode)p_edit_mode; edit_mode = (EditMode)p_edit_mode;
switch (edit_mode) { switch (edit_mode) {
case EDITMODE_REGION: { case EDITMODE_REGION: {