Page MenuHome

batch rename bones in pose mode throws exceptions
Closed, ResolvedPublic

Description

System Information
Operating system: FreeBSD 12
Graphics card: Nvidia GT730

Blender Version
Broken: 2.82 2019-10-22 - rB6c1cc08da3ba

Short description of error

Using batch rename on bones while in pose mode raises exceptions, recalling batch rename after that gives an exception before getting to alter the options in the dialog window.

Exact steps for others to reproduce the error

  • Add - Armature->single bone
  • Go into pose mode (can't select bones in object mode and edit mode works)
  • Start Batch Rename
  • Change data type to Bones - exception
  • Change Rename object to All - exception
  • Enter "bone" in Find - exception exiting field
  • Enter "tester in Replace - exception exiting field
  • Click OK

Now trying to bring the batch raname dialog up again while still in pose mode repeats the same exception.

The same exception info is repeated multiple times -

Error: Traceback (most recent call last):
  File "<path/to/build>/bin/2.82/scripts/startup/bl_operators/wm.py", line 2165, in check
    self._data_update(context)
  File "<path/to/build>/bin/2.82/scripts/startup/bl_operators/wm.py", line 2070, in _data_update
    self._data = self._data_from_context(context, self.data_type, only_selected)
  File "<path/to/build>/bin/2.82/scripts/startup/bl_operators/wm.py", line 1926, in _data_from_context
    [pchan.bone for ob in context.objects_in_mode_unique_data for pbone in ob.pose.bones],
  File "<path/to/build>/bin/2.82/scripts/startup/bl_operators/wm.py", line 1926, in <listcomp>
    [pchan.bone for ob in context.objects_in_mode_unique_data for pbone in ob.pose.bones],
NameError: name 'pchan' is not defined

location: <unknown location>:-1