diff options
author | kobewi <kobewi4e@gmail.com> | 2022-02-19 13:24:35 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-02-19 22:40:53 +0100 |
commit | 3a77484f7015ad59f6bffed80f56db8cc3214f60 (patch) | |
tree | 9b91a5ad23a3a107f94c99ec0af11acf437f1f2f /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | 3b3916f4f0eafcd65f7d97bd0ef974766741da37 (diff) |
Fix CanvasItem visibility propagation
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 76558eb946..e0bacc6083 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -3510,7 +3510,7 @@ void CanvasItemEditor::_draw_invisible_nodes_positions(Node *p_node, const Trans return; } CanvasItem *canvas_item = Object::cast_to<CanvasItem>(p_node); - if (canvas_item && !canvas_item->is_visible()) { + if (canvas_item && !canvas_item->is_visible_in_tree()) { return; } |