diff --git a/renaming_operators.py b/renaming_operators.py index 28a8eb1..0f82895 100644 --- a/renaming_operators.py +++ b/renaming_operators.py @@ -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': diff --git a/renaming_utilities.py b/renaming_utilities.py index e62ac12..02fcb28 100644 --- a/renaming_utilities.py +++ b/renaming_utilities.py @@ -85,7 +85,7 @@ 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) @@ -93,7 +93,7 @@ def getRenamingList(self, context, overrideSelection=False): 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) @@ -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)