Fix T72241: error importing OBJ with NURBS curve

This commit is contained in:
Brecht Van Lommel 2019-12-08 13:57:10 +01:00
parent 1470f353c6
commit 41d06336af
Notes: blender-bot 2023-02-14 00:01:08 +01:00
Referenced by issue blender/blender#72241, Error importing OBJ with NURBS curve
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ def create_nurbs(context_nurbs, vert_loc, new_objects):
nu = cu.splines.new('NURBS')
nu.points.add(len(curv_idx) - 1) # a point is added to start with
nu.points.foreach_set("co", [co_axis for vt_idx in curv_idx for co_axis in (vert_loc[vt_idx] + (1.0,))])
nu.points.foreach_set("co", [co_axis for vt_idx in curv_idx for co_axis in (vert_loc[vt_idx] + [1.0])])
nu.order_u = deg[0] + 1