[Bf-extensions-cvs] [97d8c82] master: Fix problems with last commit

Ines Almeida noreply at git.blender.org
Thu Mar 3 01:29:34 CET 2016


Commit: 97d8c82aece06a22ba17527ad99e7c311664b8e1
Author: Ines Almeida
Date:   Thu Mar 3 01:31:03 2016 +0000
Branches: master
https://developer.blender.org/rBA97d8c82aece06a22ba17527ad99e7c311664b8e1

Fix problems with last commit

===================================================================

M	bone_selection_sets.py

===================================================================

diff --git a/bone_selection_sets.py b/bone_selection_sets.py
index 8bd4841..2891cdc 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:



More information about the Bf-extensions-cvs mailing list