Commit: a27024e36d879c3872cfb791f4c5ce805bf57857
Author: Bastien Montagne
Date:   Thu Jul 7 12:59:24 2022 +0200
Branches: master
https://developer.blender.org/rBa27024e36d879c3872cfb791f4c5ce805bf57857

ID Management: Purge: Make outliner button use recursive purge.

This change the 'Purge' button of the Outliner 'Orphaned' view to use
recursive purge, i.e. it wil not only delete immediately unused IDs (as
listed in the view) anymore, but also all their unused dependencies.

===================================================================

M       release/scripts/startup/bl_ui/space_outliner.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_outliner.py 
b/release/scripts/startup/bl_ui/space_outliner.py
index fff252ade01..18057de6767 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -55,7 +55,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")
+            layout.operator("outliner.orphans_purge", 
text="Purge").do_recursive=True
 
         elif space.display_mode == 'DATA_API':
             layout.separator()

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to