diff options
author | lijenstina <lijenstina@gmail.com> | 2017-07-21 17:18:18 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-07-21 17:18:18 +0300 |
commit | 5638a8783502138500912061dde0e8ee476d7fca (patch) | |
tree | 76c00021edc6c99eb40c843d8f643bdffb7e75d2 /object_skinify.py | |
parent | d3211ca6a367044bc3f597004472aa39dc50a92c (diff) |
Skinify: Fix crash with access from Search and Repeat History
Bumped version to 0.9.2
Fix the issue reported on the IRC:
Setting bl_options to UNDO, INTERNAL since access through
the Search Menu or Repeat History will cause a context
loss and crash
Similar to the solution for the Task 50086
Diffstat (limited to 'object_skinify.py')
-rw-r--r-- | object_skinify.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/object_skinify.py b/object_skinify.py index 4a0b503e..02e7fadd 100644 --- a/object_skinify.py +++ b/object_skinify.py @@ -19,7 +19,7 @@ bl_info = { "name": "Skinify Rig", "author": "Albert Makac (karab44)", - "version": (0, 9, 1), + "version": (0, 9, 2), "blender": (2, 7, 9), "location": "Properties > Bone > Skinify Rig (visible on pose mode only)", "description": "Creates a mesh object from selected bones", @@ -644,12 +644,11 @@ def main(context): me.name = mesh_name # this way we fit mesh and bvh with armature modifier correctly - skin = generate_edges( - me, ob, bone_selection, scale, sknfy.connect_mesh, - sknfy.connect_parents, sknfy.head_ornaments, - sknfy.generate_all, sknfy.thickness, sknfy.finger_thickness - ) + me, ob, bone_selection, scale, sknfy.connect_mesh, + sknfy.connect_parents, sknfy.head_ornaments, + sknfy.generate_all, sknfy.thickness, sknfy.finger_thickness + ) generate_mesh(ob, size, sknfy.sub_level, sknfy.connect_mesh, sknfy.connect_parents, sknfy.generate_all, @@ -683,11 +682,15 @@ def main(context): return {'FINISHED'}, me +# Note: setting bl_options to UNDO, INTERNAL since access through +# the Search Menu or Repeat History will cause a context loss and crash +# See a similar problem solution in commit b947810291b1 + class BONE_OT_custom_shape(Operator): - '''Creates a mesh object at the selected bones positions''' bl_idname = "object.skinify_rig" bl_label = "Skinify Rig" - bl_options = {'REGISTER', 'UNDO'} + bl_description = "Creates a mesh object at the selected bones positions" + bl_options = {'UNDO', 'INTERNAL'} @classmethod def poll(cls, context): |