mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #95149 from KoBeWi/inspector_mains
Don't fold resources when child of main inspector exits
This commit is contained in:
commit
b08a3d8978
@ -3353,7 +3353,8 @@ void EditorPropertyResource::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
const EditorInspector *ei = get_parent_inspector();
|
||||
if (ei && !ei->is_main_editor_inspector()) {
|
||||
const EditorInspector *main_ei = InspectorDock::get_inspector_singleton();
|
||||
if (ei && main_ei && ei != main_ei && !main_ei->is_ancestor_of(ei)) {
|
||||
fold_resource();
|
||||
}
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user