From b56457aa5ea9d4d997f4fcb0bf89b110885be390 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 12 Apr 2024 11:22:28 +0200 Subject: [PATCH] Core: ID Management: Make 'Purge' operation always recursive by default. Inherited from previous versions of this feature, by default the Purge operation from the Outliner would remove all unused IDs, recursively. The same operation invoked from the File -> Clean Up main menu would by default only delete directly unused IDs. Now both will by default remove all (directly or indirectly) unused data. --- scripts/startup/bl_ui/space_outliner.py | 2 +- source/blender/editors/space_outliner/outliner_edit.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_ui/space_outliner.py b/scripts/startup/bl_ui/space_outliner.py index 9849c625f7f..7143c1b6b7a 100644 --- a/scripts/startup/bl_ui/space_outliner.py +++ b/scripts/startup/bl_ui/space_outliner.py @@ -66,7 +66,7 @@ class OUTLINER_HT_header(Header): layout.operator("outliner.collection_new", text="", icon='COLLECTION_NEW').nested = True elif display_mode == 'ORPHAN_DATA': - layout.operator("outliner.orphans_purge", text="Purge").do_recursive = True + layout.operator("outliner.orphans_purge", text="Purge") elif space.display_mode == 'DATA_API': layout.separator() diff --git a/source/blender/editors/space_outliner/outliner_edit.cc b/source/blender/editors/space_outliner/outliner_edit.cc index a8c50be098f..b5993910dd2 100644 --- a/source/blender/editors/space_outliner/outliner_edit.cc +++ b/source/blender/editors/space_outliner/outliner_edit.cc @@ -2340,7 +2340,7 @@ void OUTLINER_OT_orphans_purge(wmOperatorType *ot) RNA_def_boolean(ot->srna, "do_recursive", - false, + true, "Recursive Delete", "Recursively check for indirectly unused data-blocks, ensuring that no orphaned " "data-blocks remain after execution");