From 97d8c82aece06a22ba17527ad99e7c311664b8e1 Mon Sep 17 00:00:00 2001 From: Ines Almeida Date: Thu, 3 Mar 2016 01:31:03 +0000 Subject: Fix problems with last commit --- bone_selection_sets.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bone_selection_sets.py') diff --git a/bone_selection_sets.py b/bone_selection_sets.py index 8bd4841e..2891cdcd 100644 --- a/bone_selection_sets.py +++ b/bone_selection_sets.py @@ -227,7 +227,8 @@ class POSE_OT_selection_set_unassign(NeedSelSetPluginOperator): selection_set = arm.selection_sets[arm.active_selection_set] for bone in pose.bones: if bone.bone.select and bone.name in selection_set.bone_ids: - selection_set.bone_ids[bone.name].remove() + idx = selection_set.bone_ids.find(bone.name) + selection_set.bone_ids.remove(idx) return {'FINISHED'} @@ -299,9 +300,6 @@ def register(): default=0 ) - bpy.types.DATA_PT_motion_paths.append(copy_frames_armature) - bpy.types.OBJECT_PT_motion_paths.append(copy_frames_object) - def unregister(): for cls in classes: -- cgit v1.2.3