From f43ff0f90d7fdac977b62acc1ac81d01c4853ce3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Aug 2010 17:33:42 +0000 Subject: update for changes in blender --- add_curve_aceous_galore.py | 18 +++++++++--------- add_curve_torus_knots.py | 6 +++--- curve_simplify.py | 2 +- object_fracture/fracture_setup.py | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py index 6f237c1f..4957999b 100644 --- a/add_curve_aceous_galore.py +++ b/add_curve_aceous_galore.py @@ -637,12 +637,12 @@ def createCurve(vertArray, props, align_matrix): else: newSpline.points.add(int(len(vertArray)*0.25 - 1)) newSpline.points.foreach_set('co', vertArray) - newSpline.endpoint_u = True + newSpline.use_endpoint_u = True # set curveOptions newCurve.dimensions = props.shape - newSpline.cyclic_u = props.cyclic_u - newSpline.endpoint_u = props.endp_u + newSpline.use_cyclic_u = props.use_cyclic_u + newSpline.use_endpoint_u = props.endp_u newSpline.order_u = props.order_u # create object with newCurve @@ -783,7 +783,7 @@ class Curveaceous_galore(bpy.types.Operator): cyclic_u = BoolProperty(name="Cyclic", default=True, description="make curve closed") - endp_u = BoolProperty(name="endpoint_u", + endp_u = BoolProperty(name="use_endpoint_u", default=True, description="stretch to endpoints") order_u = IntProperty(name="order_u", @@ -1048,18 +1048,18 @@ class Curveaceous_galore(bpy.types.Operator): box = layout.box() if props.outputType == 'NURBS': box.row().prop(props, 'shape', expand=True) - #box.prop(props, 'cyclic_u') + #box.prop(props, 'use_cyclic_u') #box.prop(props, 'endp_u') box.prop(props, 'order_u') if props.outputType == 'POLY': box.row().prop(props, 'shape', expand=True) - #box.prop(props, 'cyclic_u') + #box.prop(props, 'use_cyclic_u') if props.outputType == 'BEZIER': box.row().prop(props, 'shape', expand=True) box.row().prop(props, 'handleType', expand=True) - #box.prop(props, 'cyclic_u') + #box.prop(props, 'use_cyclic_u') ##### POLL ##### @@ -1081,9 +1081,9 @@ class Curveaceous_galore(bpy.types.Operator): #props.shape = '2D' # someone decide if we want this if props.GalloreType in ['Helix']: - props.cyclic_u = False + props.use_cyclic_u = False else: - props.cyclic_u = True + props.use_cyclic_u = True # main function diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py index aa1f3071..6f1cecef 100644 --- a/add_curve_torus_knots.py +++ b/add_curve_torus_knots.py @@ -78,12 +78,12 @@ def createCurve(vertArray, props, align_matrix): # create spline from vertarray newSpline.points.add(int(len(vertArray)*0.25 - 1)) newSpline.points.foreach_set('co', vertArray) - newSpline.endpoint_u = True + newSpline.use_endpoint_u = True # Curve settings newCurve.dimensions = '3D' - newSpline.cyclic_u = True - newSpline.endpoint_u = True + newSpline.use_cyclic_u = True + newSpline.use_endpoint_u = True newSpline.order_u = 4 if props.geo_surf: diff --git a/curve_simplify.py b/curve_simplify.py index 09377915..be17146c 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -280,7 +280,7 @@ def main(context, obj, options): newSpline.order_u = degreeOut # splineoptions - newSpline.endpoint_u = spline.endpoint_u + newSpline.use_endpoint_u = spline.use_endpoint_u # create ne object and put into scene newCurve = bpy.data.objects.new("simple_"+obj.name, curve) diff --git a/object_fracture/fracture_setup.py b/object_fracture/fracture_setup.py index a471edf1..3ab93821 100644 --- a/object_fracture/fracture_setup.py +++ b/object_fracture/fracture_setup.py @@ -43,7 +43,7 @@ def setupshards(context): g.physics_type = 'RIGID_BODY' g.use_collision_bounds = 1 - g.collision_bounds = 'CONVEX_HULL' + g.collision_bounds_type = 'CONVEX_HULL' g.rotation_damping = 0.9 sizex, sizey, sizez = getsizefrommesh(ob) -- cgit v1.2.3