Fix T96342: Add Curve Extra Objects addon fails when adding Curvy Curve
This commit is contained in:
parent
c34f0b90d4
commit
7cdde96d32
Notes:
blender-bot
2023-02-14 18:23:44 +01:00
Referenced by issue blender/blender#96241: 3.1: Potential candidates for corrective releases Referenced by issue blender/blender#96241, 3.1: Potential candidates for corrective releases Referenced by issue #96342, Add Curve Extra Objects addon fails when adding Curvy Curve
|
@ -5,7 +5,7 @@
|
|||
bl_info = {
|
||||
"name": "Curly Curves",
|
||||
"author": "Cmomoney",
|
||||
"version": (1, 1, 9),
|
||||
"version": (1, 2, 0),
|
||||
"blender": (2, 80, 0),
|
||||
"location": "View3D > Add > Curve > Curly Curve",
|
||||
"description": "Adds a new Curly Curve",
|
||||
|
@ -402,7 +402,7 @@ def make_curve(self, context, verts, lh, rh):
|
|||
for p in range(len(verts)):
|
||||
c = 0
|
||||
newSpline = Curve.data.splines.new(type='BEZIER') # newSpline
|
||||
newSpline.bezier_points.add(len(verts[p]) / 3 - 1)
|
||||
newSpline.bezier_points.add(int(len(verts[p]) / 3 - 1))
|
||||
newSpline.bezier_points.foreach_set('co', verts[p])
|
||||
|
||||
for bp in newSpline.bezier_points:
|
||||
|
@ -424,7 +424,7 @@ def make_curve(self, context, verts, lh, rh):
|
|||
for p in range(len(verts)):
|
||||
c = 0
|
||||
newSpline = dataCurve.splines.new(type='BEZIER') # newSpline
|
||||
newSpline.bezier_points.add(len(verts[p]) / 3 - 1)
|
||||
newSpline.bezier_points.add(int(len(verts[p]) / 3 - 1))
|
||||
newSpline.bezier_points.foreach_set('co', verts[p])
|
||||
|
||||
for bp in newSpline.bezier_points:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
bl_info = {
|
||||
"name": "Bevel/Taper Curve",
|
||||
"author": "Cmomoney",
|
||||
"version": (1, 2),
|
||||
"version": (1, 2, 1),
|
||||
"blender": (2, 80, 0),
|
||||
"location": "View3D > Object > Bevel/Taper",
|
||||
"description": "Adds bevel and/or taper curve to active curve",
|
||||
|
@ -204,7 +204,7 @@ def make_curve(self, context, verts, lh, rh):
|
|||
c = 0
|
||||
spline = curve_data.splines.new(type='BEZIER')
|
||||
spline.use_cyclic_u = True
|
||||
spline.bezier_points.add(len(verts[p]) / 3 - 1)
|
||||
spline.bezier_points.add(int(len(verts[p]) / 3 - 1))
|
||||
spline.bezier_points.foreach_set('co', verts[p])
|
||||
|
||||
for bp in spline.bezier_points:
|
||||
|
|
Loading…
Reference in New Issue