do not allow editing of tilemap if it's invisible, fixes #2601

This commit is contained in:
reduz 2015-12-28 21:23:32 -03:00
parent f7b64a62d1
commit 4028dfa6d2

View File

@ -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();