Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInes Almeida <britalmeida@gmail.com>2016-03-03 04:31:03 +0300
committerInes Almeida <britalmeida@gmail.com>2016-03-03 04:31:03 +0300
commit97d8c82aece06a22ba17527ad99e7c311664b8e1 (patch)
tree8767643c6fe58c14e0ba0663d35b8aabcf296a78 /bone_selection_sets.py
parentd7cd2f6dfe8c424a11bdd6f0a9060ad985c851c7 (diff)
Fix problems with last commit
Diffstat (limited to 'bone_selection_sets.py')
-rw-r--r--bone_selection_sets.py6
1 files changed, 2 insertions, 4 deletions
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: