diff options
| author | reduz | 2015-12-28 21:23:32 -0300 |
|---|---|---|
| committer | reduz | 2015-12-28 21:23:32 -0300 |
| commit | 4028dfa6d29a2894d2011d24b3300df1cfc4f906 (patch) | |
| tree | 755e6f48e422ed7d77e8f4fad0f01680395d992f /tools/editor/plugins/tile_map_editor_plugin.cpp | |
| parent | f7b64a62d115d4955a47ea6735960f535ed8133c (diff) | |
| download | godot-4028dfa6d29a2894d2011d24b3300df1cfc4f906.tar.gz godot-4028dfa6d29a2894d2011d24b3300df1cfc4f906.tar.zst godot-4028dfa6d29a2894d2011d24b3300df1cfc4f906.zip | |
Diffstat (limited to 'tools/editor/plugins/tile_map_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/tile_map_editor_plugin.cpp | 3 |
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 66c7a3909..ebbd41bc2 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(); |
