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) <cwolf3d@gmail.com>2020-08-09 12:14:47 +0300
committerVladimir Spivak(cwolf3d) <cwolf3d@gmail.com>2020-08-09 12:14:47 +0300
commitfe1dc5a06f262d4906fcba7f73c75d2c371b3a1e (patch)
tree459b67e0e85af0d7d563d5d57bcff9f19f27afb2
parentd578bc8665f7de26a1e202daeb9cb7f25a8bc037 (diff)
Fix T78969 Addon: Add curve extra objects. NURBS mode, Order U changes nothing
-rw-r--r--add_curve_extra_objects/add_curve_spirals.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/add_curve_extra_objects/add_curve_spirals.py b/add_curve_extra_objects/add_curve_spirals.py
index 2ccdc51a..aa879007 100644
--- a/add_curve_extra_objects/add_curve_spirals.py
+++ b/add_curve_extra_objects/add_curve_spirals.py
@@ -245,19 +245,6 @@ def draw_curve(props, context, align_matrix):
Curve.rotation_euler = props.rotation_euler
Curve.select_set(True)
- # set curveOptions
- Curve.data.dimensions = props.shape
- Curve.data.use_path = True
- if props.shape == '3D':
- Curve.data.fill_mode = 'FULL'
- else:
- Curve.data.fill_mode = 'BOTH'
-
- # set curveOptions
- newSpline.use_cyclic_u = props.use_cyclic_u
- newSpline.use_endpoint_u = props.endp_u
- newSpline.order_u = props.order_u
-
# turn verts into array
vertArray = vertsToPoints(verts, splineType)
@@ -288,6 +275,19 @@ def draw_curve(props, context, align_matrix):
for point in newSpline.points:
point.select = True
+ # set curveOptions
+ newSpline.use_cyclic_u = props.use_cyclic_u
+ newSpline.use_endpoint_u = props.endp_u
+ newSpline.order_u = props.order_u
+
+ # set curveOptions
+ Curve.data.dimensions = props.shape
+ Curve.data.use_path = True
+ if props.shape == '3D':
+ Curve.data.fill_mode = 'FULL'
+ else:
+ Curve.data.fill_mode = 'BOTH'
+
# move and rotate spline in edit mode
if bpy.context.mode == 'EDIT_CURVE':
bpy.ops.transform.translate(value = props.startlocation)