summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2015-12-28 21:23:32 -0300
committerreduz <reduzio@gmail.com>2015-12-28 21:23:32 -0300
commit4028dfa6d29a2894d2011d24b3300df1cfc4f906 (patch)
tree755e6f48e422ed7d77e8f4fad0f01680395d992f
parentf7b64a62d115d4955a47ea6735960f535ed8133c (diff)
do not allow editing of tilemap if it's invisible, fixes #2601
-rw-r--r--tools/editor/plugins/tile_map_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/plugins/tile_map_editor_plugin.cpp b/tools/editor/plugins/tile_map_editor_plugin.cpp
index 66c7a39096..ebbd41bc23 100644
--- a/tools/editor/plugins/tile_map_editor_plugin.cpp
+++ b/tools/editor/plugins/tile_map_editor_plugin.cpp
@@ -218,7 +218,8 @@ struct _TileMapEditorCopyData {
bool TileMapEditor::forward_input_event(const InputEvent& p_event) {
- if (!node || !node->get_tileset().is_valid())
+
+ if (!node || !node->get_tileset().is_valid() || !node->is_visible())
return false;
Matrix32 xform = CanvasItemEditor::get_singleton()->get_canvas_transform() * node->get_global_transform();