Skip to content
Snippets Groups Projects
Commit fe1dc5a0 authored by Vladimir Spivak(cwolf3d)'s avatar Vladimir Spivak(cwolf3d)
Browse files

Fix T78969 Addon: Add curve extra objects. NURBS mode, Order U changes nothing

parent d578bc86
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment