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:
@@ -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()
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user