Fix behavior of 'Editable Children' toggle.

Prevents losing nodes owned by the edited scene when
toggling editable_children off on an instanced scene,
and makes the toggle compatible with undo-redo.
This commit is contained in:
SaracenOne
2022-05-12 16:36:37 +01:00
committed by Rémi Verschelde
parent 2ccc5c7575
commit cb8a743e18
3 changed files with 120 additions and 10 deletions
+2
View File
@@ -8061,6 +8061,8 @@ void Node3DEditor::_bind_methods() {
ClassDB::bind_method("_clear_subgizmo_selection", &Node3DEditor::_clear_subgizmo_selection);
ClassDB::bind_method("_refresh_menu_icons", &Node3DEditor::_refresh_menu_icons);
ClassDB::bind_method("update_all_gizmos", &Node3DEditor::update_all_gizmos);
ADD_SIGNAL(MethodInfo("transform_key_request"));
ADD_SIGNAL(MethodInfo("item_lock_status_changed"));
ADD_SIGNAL(MethodInfo("item_group_status_changed"));