You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fixes node2D not lockable/groupable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user