Fixes node2D not lockable/groupable
This commit is contained in:
parent
313b1a639c
commit
c9e1bff93f
1 changed files with 2 additions and 2 deletions
|
@ -2668,13 +2668,13 @@ void CanvasItemEditor::_draw_viewport() {
|
|||
all_group = false;
|
||||
} else {
|
||||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
if (Object::cast_to<Control>(E->get()) && !Object::cast_to<Control>(E->get())->has_meta("_edit_lock_")) {
|
||||
if (Object::cast_to<CanvasItem>(E->get()) && !Object::cast_to<CanvasItem>(E->get())->has_meta("_edit_lock_")) {
|
||||
all_locked = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
if (Object::cast_to<Control>(E->get()) && !Object::cast_to<Control>(E->get())->has_meta("_edit_group_")) {
|
||||
if (Object::cast_to<CanvasItem>(E->get()) && !Object::cast_to<CanvasItem>(E->get())->has_meta("_edit_group_")) {
|
||||
all_group = false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue