Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-18 04:22:45 +0300
committerCampbell Barton <campbell@blender.org>2022-01-18 04:23:15 +0300
commit7220897280e285305d8ab908a3ca95f8311dfa3e (patch)
tree85d2021bc69c96df7be6c65b23a87413a4751a2e /release
parent75d84b1b642a82777d2688a9bdeedd7064dcee10 (diff)
WM: batch rename support for volume & light object data
Also order items to match the "Add" menu.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py13
1 files changed, 9 insertions, 4 deletions
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.