You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
2D Editor: Don't show lock icons for hidden nodes.
Now we only draw those icons for visible Nodes. Fixes #7518
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user