Skip to content

Commit

Permalink
Always fold resource when property exits tree
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Dec 25, 2024
1 parent 0f95e9f commit fc472eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3385,11 +3385,7 @@ bool EditorPropertyResource::is_colored(ColorationMode p_mode) {
void EditorPropertyResource::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_EXIT_TREE: {
const EditorInspector *ei = get_parent_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;
}
}
Expand Down

0 comments on commit fc472eb

Please sign in to comment.