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:
authorCampbell Barton <ideasman42@gmail.com>2011-07-25 06:02:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-25 06:02:10 +0400
commitf7ed59065a9069de777e4957f48650d72bd2a400 (patch)
treeee3ea6c554015dc242c89dbfe72b51a1963e4121 /io_scene_obj/export_obj.py
parentc8c166df88185920d098144dd4d8c894d2288a4c (diff)
reverse matrix, vector multiplication order,
previous order deprecated.
Diffstat (limited to 'io_scene_obj/export_obj.py')
-rw-r--r--io_scene_obj/export_obj.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index a6570907..0eb1b8d3 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -172,8 +172,7 @@ def write_nurb(file, ob, ob_mat):
do_endpoints = (do_closed == 0) and nu.use_endpoint_u
for pt in nu.points:
- pt = pt.co.to_3d() * ob_mat
- file.write('v %.6f %.6f %.6f\n' % (pt[0], pt[1], pt[2]))
+ file.write('v %.6f %.6f %.6f\n' % (ob_mat * pt.co.to_3d())[:])
pt_num += 1
tot_verts += pt_num