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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-12-08 15:57:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-12-08 15:57:10 +0300
commit41d06336af87fee59a5dae767aa4315152f49222 (patch)
tree2579eba18dc1186a8f6d9a31cdb076a2ac33dc57 /io_scene_obj
parent1470f353c65034db91131d21ab9c782d029a2ee9 (diff)
Fix T72241: error importing OBJ with NURBS curve
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 356dd43d..0cb6be77 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -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