We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe31ede + 5cf9afb commit b08a3d8Copy full SHA for b08a3d8
editor/editor_properties.cpp
@@ -3353,7 +3353,8 @@ void EditorPropertyResource::_notification(int p_what) {
3353
switch (p_what) {
3354
case NOTIFICATION_EXIT_TREE: {
3355
const EditorInspector *ei = get_parent_inspector();
3356
- if (ei && !ei->is_main_editor_inspector()) {
+ const EditorInspector *main_ei = InspectorDock::get_inspector_singleton();
3357
+ if (ei && main_ei && ei != main_ei && !main_ei->is_ancestor_of(ei)) {
3358
fold_resource();
3359
}
3360
} break;
0 commit comments