Skip to content

Commit

Permalink
#93 -Fix edit mode renaming all
Browse files Browse the repository at this point in the history
  • Loading branch information
Weisl committed Sep 24, 2021
1 parent 0664e87 commit 702bd81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion renaming_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ def execute(self, context):
new_name, dataList = numerate_object_name(context, replaceName, dataList, entity.name, return_type_list = True)

elif wm.renaming_object_types == 'BONE':
print(str(boneList))
new_name, boneList = numerate_object_name(context, replaceName, boneList, entity.name, return_type_list = True)

elif wm.renaming_object_types == 'COLLECTION':
Expand Down
5 changes: 2 additions & 3 deletions renaming_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def getRenamingList(self, context, overrideSelection=False):
if name == bone.name:
newBone = PoseBone(arm.bones[name])
renamingList.append(newBone)
else: # modeOld == 'EDIT':
else: # modeOld == 'EDIT_ARMATURE':
for bone in arm.edit_bones:
if selected_bone == bone:
newBone = EditBone(selected_bone)
renamingList.append(newBone)

else: # if onlySelection == False
for arm in bpy.data.armatures:
if modeOld == 'EDIT':
if modeOld == 'EDIT_ARMATURE':
for bone in arm.edit_bones:
newBone = EditBone(bone)
renamingList.append(newBone)
Expand All @@ -102,7 +102,6 @@ def getRenamingList(self, context, overrideSelection=False):
newBone = PoseBone(bone)
renamingList.append(newBone)


elif wm.renaming_object_types == 'COLLECTION':
renamingList = list(bpy.data.collections)

Expand Down

0 comments on commit 702bd81

Please sign in to comment.