summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-02-19 13:24:35 +0100
committerkobewi <kobewi4e@gmail.com>2022-02-19 22:40:53 +0100
commit3a77484f7015ad59f6bffed80f56db8cc3214f60 (patch)
tree9b91a5ad23a3a107f94c99ec0af11acf437f1f2f /editor/plugins
parent3b3916f4f0eafcd65f7d97bd0ef974766741da37 (diff)
Fix CanvasItem visibility propagation
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
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;
}