From 99e938c5cee97f22926a98d9ece90a59aacb0c4c Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Wed, 19 Jan 2011 22:13:56 +0000
Subject: [PATCH] correction in matrix multiplication order when importing
 nurbs curves.

---
 io_scene_obj/export_obj.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index bc66deec4..e1f0d0815 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -212,7 +212,7 @@ def write_nurb(file, ob, ob_mat):
         do_endpoints = (do_closed == 0) and nu.use_endpoint_u
 
         for pt in nu.points:
-            pt = ob_mat * pt.co.copy().resize3D()
+            pt = pt.co.copy().resize3D() * ob_mat
             file.write('v %.6f %.6f %.6f\n' % (pt[0], pt[1], pt[2]))
             pt_num += 1
         tot_verts += pt_num
-- 
GitLab