diff options
-rw-r--r-- | mocap/__init__.py | 2 | ||||
-rw-r--r-- | object_fracture_voroni/fracture_cell_setup.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py index 225a304e..197967e6 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -370,7 +370,7 @@ class MocapConstraintsPanel(bpy.types.Panel): headerRow.operator("mocap.removeconstraint", text="", icon='X', emboss=False).constraint = i if m_constraint.show_expanded: box.separator() - box.prop_search(m_constraint, 'constrained_bone', enduser_obj.pose, "bones", icon='BONE_DATA',text='') + box.prop_search(m_constraint, 'constrained_bone', enduser_obj.pose, "bones", icon='BONE_DATA',text="") if m_constraint.type == "distance" or m_constraint.type == "point": box.prop_search(m_constraint, 'constrained_boneB', enduser_obj.pose, "bones", icon='CONSTRAINT_BONE') frameRow = box.row() diff --git a/object_fracture_voroni/fracture_cell_setup.py b/object_fracture_voroni/fracture_cell_setup.py index cc440a53..5d0ecf18 100644 --- a/object_fracture_voroni/fracture_cell_setup.py +++ b/object_fracture_voroni/fracture_cell_setup.py @@ -194,9 +194,9 @@ def cell_fracture_objects(scene, obj, bm_vert.tag = True import mathutils - bmesh.ops.remove_doubles(bm, {'TAG'}, 0.0001) + bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=0.0001) try: - bmesh.ops.convex_hull(bm, {'TAG'}) + bmesh.ops.convex_hull(bm, input=bm.verts) except RuntimeError: import traceback traceback.print_exc() @@ -208,7 +208,7 @@ def cell_fracture_objects(scene, obj, bm_edge.tag = True bm.normal_update() try: - bmesh.ops.dissolve_limit(bm, {'TAG'}, {'TAG'}, 0.001) + bmesh.ops.dissolve_limit(bm, verts=bm.verts, angle_limit=0.001) except RuntimeError: import traceback traceback.print_exc() @@ -304,7 +304,7 @@ def cell_fracture_boolean(scene, obj, objects, apply=True, clean=True): bm_edge.tag = True bm.normal_update() try: - bmesh.ops.dissolve_limit(bm, {'TAG'}, {'TAG'}, 0.001) + bmesh.ops.dissolve_limit(bm, verts=bm.verts, edges=bm.edges, angle_limit=0.001) except RuntimeError: import traceback traceback.print_exc() |