mirror of
https://github.com/godotengine/godot.git
synced 2024-12-12 06:04:26 +00:00
do not allow editing of tilemap if it's invisible, fixes #2601
This commit is contained in:
parent
f7b64a62d1
commit
4028dfa6d2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user