mirror of
https://github.com/godotengine/godot
synced 2024-09-05 19:49:39 +00:00
Merge pull request #7576 from Hinsbart/hide_lock_icons
2D Editor: Don't show lock icons for hidden nodes.
This commit is contained in:
commit
72a0255585
|
@ -2354,7 +2354,7 @@ void CanvasItemEditor::_find_canvas_items_span(Node *p_node, Rect2& r_rect, cons
|
|||
|
||||
|
||||
|
||||
if (c) {
|
||||
if (c && c->is_visible_in_tree()) {
|
||||
|
||||
Rect2 rect = c->get_item_rect();
|
||||
Transform2D xform = p_xform * c->get_transform();
|
||||
|
|
|
@ -470,7 +470,10 @@ void SceneTreeEditor::_node_visibility_changed(Node *p_node) {
|
|||
|
||||
bool visible=false;
|
||||
|
||||
if (p_node->is_class("CanvasItem") || p_node->is_class("Spatial")) {
|
||||
if (p_node->is_class("CanvasItem")) {
|
||||
visible = p_node->call("is_visible");
|
||||
CanvasItemEditor::get_singleton()->get_viewport_control()->update();
|
||||
} else if (p_node->is_class("Spatial")) {
|
||||
visible = p_node->call("is_visible");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue