summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-09 15:57:31 +0100
committerGitHub <noreply@github.com>2018-11-09 15:57:31 +0100
commitd4c62e714c8901277cb29d53430ae415bf4d03c7 (patch)
treed0b8f7e1da7e914409d9631c90f5e7e673f19219
parentffe5723fdeac967bd13c41d86dde4fbe36527d6b (diff)
parent5116c009c94b80b1fca71bf30a89381e61f1fa68 (diff)
Merge pull request #23578 from Liangdi/master
fix tile set editor crash when drawing polygon shapes
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp2
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);