Merge pull request #7632 from RandomShaper/hide-lock-icons-2.1

2D Editor: Don't show lock icons for hidden nodes (2.1)
This commit is contained in:
Rémi Verschelde 2017-01-25 07:38:16 +01:00 committed by GitHub
commit 9038a96e49
2 changed files with 2 additions and 1 deletions

View File

@ -2336,7 +2336,7 @@ void CanvasItemEditor::_find_canvas_items_span(Node *p_node, Rect2& r_rect, cons
if (c) {
if (c && c->is_visible()) {
Rect2 rect = c->get_item_rect();
Matrix32 xform = p_xform * c->get_transform();

View File

@ -471,6 +471,7 @@ void SceneTreeEditor::_node_visibility_changed(Node *p_node) {
if (p_node->is_type("CanvasItem")) {
visible = !p_node->call("is_hidden");
CanvasItemEditor::get_singleton()->get_viewport_control()->update();
} else if (p_node->is_type("Spatial")) {
visible = !p_node->call("is_hidden");
}