Fix T71037: batch rename bones in pose mode throws exceptions

Maniphest Tasks: T71037

Differential Revision: https://developer.blender.org/D6122
This commit is contained in:
Philipp Oeser 2019-10-23 13:45:05 +02:00
parent 9b6aa740be
commit 9f388c1646
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #71037, batch rename bones in pose mode throws exceptions
1 changed files with 1 additions and 1 deletions

View File

@ -1923,7 +1923,7 @@ class WM_OT_batch_rename(Operator):
data = (
[pchan.bone for pchan in context.selected_pose_bones]
if only_selected else
[pchan.bone for ob in context.objects_in_mode_unique_data for pbone in ob.pose.bones],
[pbone.bone for ob in context.objects_in_mode_unique_data for pbone in ob.pose.bones],
"name",
"Bone(s)",
)