[Bf-extensions-cvs] [fe1dc5a0] master: Fix T78969 Addon: Add curve extra objects. NURBS mode, Order U changes nothing
Vladimir Spivakcwolf3d
noreply at git.blender.org
Sun Aug 9 11:17:02 CEST 2020
Commit: fe1dc5a06f262d4906fcba7f73c75d2c371b3a1e
Author: Vladimir Spivak(cwolf3d)
Date: Sun Aug 9 12:14:47 2020 +0300
Branches: master
https://developer.blender.org/rBAfe1dc5a06f262d4906fcba7f73c75d2c371b3a1e
Fix T78969 Addon: Add curve extra objects. NURBS mode, Order U changes nothing
===================================================================
M add_curve_extra_objects/add_curve_spirals.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list