[Bf-blender-cvs] [7220897280e] master: WM: batch rename support for volume & light object data
Campbell Barton
noreply at git.blender.org
Tue Jan 18 05:05:17 CET 2022
Commit: 7220897280e285305d8ab908a3ca95f8311dfa3e
Author: Campbell Barton
Date: Tue Jan 18 12:22:45 2022 +1100
Branches: master
https://developer.blender.org/rB7220897280e285305d8ab908a3ca95f8311dfa3e
WM: batch rename support for volume & light object data
Also order items to match the "Add" menu.
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 2c764849d05..3a46bb7fb53 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -2471,15 +2471,18 @@ class WM_OT_batch_rename(Operator):
('MATERIAL', "Materials", ""),
None,
# Enum identifiers are compared with 'object.type'.
+ # Follow order in "Add" menu.
('MESH', "Meshes", ""),
('CURVE', "Curves", ""),
('META', "Metaballs", ""),
+ ('VOLUME', "Volumes", ""),
+ ('GPENCIL', "Grease Pencils", ""),
('ARMATURE', "Armatures", ""),
('LATTICE', "Lattices", ""),
- ('GPENCIL', "Grease Pencils", ""),
+ ('LIGHT', "Light", ""),
+ ('LIGHT_PROBE', "Light Probes", ""),
('CAMERA', "Cameras", ""),
('SPEAKER', "Speakers", ""),
- ('LIGHT_PROBE', "Light Probes", ""),
None,
('BONE', "Bones", ""),
('NODE', "Nodes", ""),
@@ -2595,12 +2598,14 @@ class WM_OT_batch_rename(Operator):
'MESH': ("meshes", "Mesh(es)", bpy.types.Mesh),
'CURVE': ("curves", "Curve(s)", bpy.types.Curve),
'META': ("metaballs", "Metaball(s)", bpy.types.MetaBall),
+ 'VOLUME': ("volumes", "Volume(s)", bpy.types.Volume),
+ 'GPENCIL': ("grease_pencils", "Grease Pencil(s)", bpy.types.GreasePencil),
'ARMATURE': ("armatures", "Armature(s)", bpy.types.Armature),
'LATTICE': ("lattices", "Lattice(s)", bpy.types.Lattice),
- 'GPENCIL': ("grease_pencils", "Grease Pencil(s)", bpy.types.GreasePencil),
+ 'LIGHT': ("lights", "Light(s)", bpy.types.Light),
+ 'LIGHT_PROBE': ("light_probes", "Light Probe(s)", bpy.types.LightProbe),
'CAMERA': ("cameras", "Camera(s)", bpy.types.Camera),
'SPEAKER': ("speakers", "Speaker(s)", bpy.types.Speaker),
- 'LIGHT_PROBE': ("light_probes", "Light Probe(s)", bpy.types.LightProbe),
}
# Finish with space types.
More information about the Bf-blender-cvs
mailing list