You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
do not allow editing of tilemap if it's invisible, fixes #2601
This commit is contained in:
@@ -218,7 +218,8 @@ struct _TileMapEditorCopyData {
|
|||||||
|
|
||||||
bool TileMapEditor::forward_input_event(const InputEvent& p_event) {
|
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;
|
return false;
|
||||||
|
|
||||||
Matrix32 xform = CanvasItemEditor::get_singleton()->get_canvas_transform() * node->get_global_transform();
|
Matrix32 xform = CanvasItemEditor::get_singleton()->get_canvas_transform() * node->get_global_transform();
|
||||||
|
|||||||
Reference in New Issue
Block a user