Don't fold resources when child of main inspector exits
This commit is contained in:
parent
3978628c6c
commit
5cf9afb0c0
1 changed files with 2 additions and 1 deletions
|
@ -3417,7 +3417,8 @@ void EditorPropertyResource::_notification(int p_what) {
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_EXIT_TREE: {
|
case NOTIFICATION_EXIT_TREE: {
|
||||||
const EditorInspector *ei = get_parent_inspector();
|
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();
|
fold_resource();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in a new issue