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.
This commit is contained in:
Bastien Montagne
2024-04-12 11:22:28 +02:00
parent d47e0c8ab9
commit b56457aa5e
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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");