[Bf-extensions-cvs] [41d06336] master: Fix T72241: error importing OBJ with NURBS curve

Brecht Van Lommel noreply at git.blender.org
Sun Dec 8 13:57:48 CET 2019


Commit: 41d06336af87fee59a5dae767aa4315152f49222
Author: Brecht Van Lommel
Date:   Sun Dec 8 13:57:10 2019 +0100
Branches: master
https://developer.blender.org/rBA41d06336af87fee59a5dae767aa4315152f49222

Fix T72241: error importing OBJ with NURBS curve

===================================================================

M	io_scene_obj/import_obj.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list