rigify panel, ignore removing a bones type when its not found
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Feb 2010 13:30:26 +0000 (13:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Feb 2010 13:30:26 +0000 (13:30 +0000)
release/scripts/ui/properties_data_armature_rigify.py

index e737bdfcf9f0dd11d538fb18bb3b20036ae4fd3f..551ae4b4721628779ba008f8e4ea0351c6a6bacf 100644 (file)
@@ -309,7 +309,10 @@ class ActiveClear(bpy.types.Operator):
 
     def execute(self, context):
         scene = context.scene
-        del context.active_pose_bone["type"]
+        try:
+            del context.active_pose_bone["type"]
+        except:
+            return {'CANCELLED'}
         return {'FINISHED'}