Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Spivak <cwolf3d@gmail.com>2022-03-12 14:42:19 +0300
committerVladimir Spivak <cwolf3d@gmail.com>2022-03-12 14:42:19 +0300
commit7cdde96d329d6221090d1f23ea70a7b90c2b9739 (patch)
tree4b90af7e1a4d52da92bfc035d0142813ad8c6770
parentc34f0b90d49938eccf9c1a9ae59b055155e00f9b (diff)
Fix T96342: Add Curve Extra Objects addon fails when adding Curvy Curve
-rw-r--r--add_curve_extra_objects/add_curve_curly.py6
-rw-r--r--add_curve_extra_objects/beveltaper_curve.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/add_curve_extra_objects/add_curve_curly.py b/add_curve_extra_objects/add_curve_curly.py
index 0111aaf6..af02f115 100644
--- a/add_curve_extra_objects/add_curve_curly.py
+++ b/add_curve_extra_objects/add_curve_curly.py
@@ -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:
diff --git a/add_curve_extra_objects/beveltaper_curve.py b/add_curve_extra_objects/beveltaper_curve.py
index 80c01b3a..798b1fbb 100644
--- a/add_curve_extra_objects/beveltaper_curve.py
+++ b/add_curve_extra_objects/beveltaper_curve.py
@@ -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: