diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 798e745ce95..5ee857d7ea2 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2597,6 +2597,20 @@ class WM_OT_batch_rename(Operator): "name", "Object(s)", ) + elif data_type == 'COLLECTION': + data = ( + tuple(set( + ob.instance_collection + for ob in context.selected_objects + if ((ob.instance_type == 'COLLECTION') and + (collection := ob.instance_collection) is not None and + (collection.library is None)) + )) + if only_selected else + [id for id in bpy.data.collections if id.library is None], + "name", + "Collection(s)", + ) elif data_type == 'MATERIAL': data = ( tuple(set( |