bugfix [#20237] Import error
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Dec 2009 20:52:05 +0000 (20:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Dec 2009 20:52:05 +0000 (20:52 +0000)
(export X90 rotation wasnt right)

release/scripts/io/export_obj.py

index 77acffe325c6741c0e2f3ee63abaa1816ce54c3f..85af371680a24ca45d1f33dbab867cb7d6753bd4 100644 (file)
@@ -444,7 +444,7 @@ def write(filename, objects, scene,
             me = ob.create_mesh(EXPORT_APPLY_MODIFIERS, 'PREVIEW')
 
             if EXPORT_ROTX90:
-                me.transform(ob_mat * mat_xrot90)
+                me.transform(mat_xrot90 * ob_mat)
             else:
                 me.transform(ob_mat)