diff options
author | Liangdi <wu@liangdi.me> | 2018-11-08 02:10:13 +0800 |
---|---|---|
committer | Liangdi <wu@liangdi.me> | 2018-11-08 02:10:13 +0800 |
commit | 5116c009c94b80b1fca71bf30a89381e61f1fa68 (patch) | |
tree | ce9d2a21e2bbd4b4feb5a7f97e549b499e3fe2b5 /editor | |
parent | 8ca90d718e79557408a352335b67bc6219740a34 (diff) |
fix tile set editor crash when drawing polygon shapes
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index 01768c201e..d0e0b3e006 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -958,7 +958,7 @@ void TileSetEditor::_on_workspace_input(const Ref<InputEvent> &p_ie) { Ref<InputEventMouseMotion> mm = p_ie; if (mb.is_valid()) { - if (mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) { + if (mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT && !creating_shape) { if (!current_tile_region.has_point(mb->get_position())) { List<int> *tiles = new List<int>(); tileset->get_tile_list(tiles); |