You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Allow Viewport children to lock, group, and key
This commit is contained in:
@@ -6771,10 +6771,6 @@ void Node3DEditor::_menu_item_pressed(int p_option) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (spatial->get_viewport() != EditorNode::get_singleton()->get_scene_root()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
undo_redo->add_do_method(spatial, "set_meta", "_edit_lock_", true);
|
||||
undo_redo->add_undo_method(spatial, "remove_meta", "_edit_lock_");
|
||||
undo_redo->add_do_method(this, "emit_signal", "item_lock_status_changed");
|
||||
@@ -6796,10 +6792,6 @@ void Node3DEditor::_menu_item_pressed(int p_option) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (spatial->get_viewport() != EditorNode::get_singleton()->get_scene_root()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
undo_redo->add_do_method(spatial, "remove_meta", "_edit_lock_");
|
||||
undo_redo->add_undo_method(spatial, "set_meta", "_edit_lock_", true);
|
||||
undo_redo->add_do_method(this, "emit_signal", "item_lock_status_changed");
|
||||
@@ -6821,10 +6813,6 @@ void Node3DEditor::_menu_item_pressed(int p_option) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (spatial->get_viewport() != EditorNode::get_singleton()->get_scene_root()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
undo_redo->add_do_method(spatial, "set_meta", "_edit_group_", true);
|
||||
undo_redo->add_undo_method(spatial, "remove_meta", "_edit_group_");
|
||||
undo_redo->add_do_method(this, "emit_signal", "item_group_status_changed");
|
||||
@@ -6845,10 +6833,6 @@ void Node3DEditor::_menu_item_pressed(int p_option) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (spatial->get_viewport() != EditorNode::get_singleton()->get_scene_root()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
undo_redo->add_do_method(spatial, "remove_meta", "_edit_group_");
|
||||
undo_redo->add_undo_method(spatial, "set_meta", "_edit_group_", true);
|
||||
undo_redo->add_do_method(this, "emit_signal", "item_group_status_changed");
|
||||
|
||||
Reference in New Issue
Block a user