[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2004] trunk/py/scripts/addons/ io_scene_obj/export_obj.py: fix [#27593] Obj exporter errors reappeared

Campbell Barton ideasman42 at gmail.com
Mon Jun 6 06:13:01 CEST 2011


Revision: 2004
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2004
Author:   campbellbarton
Date:     2011-06-06 04:12:59 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
fix [#27593] Obj exporter errors reappeared

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_obj/export_obj.py

Modified: trunk/py/scripts/addons/io_scene_obj/export_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/export_obj.py	2011-06-05 14:50:13 UTC (rev 2003)
+++ trunk/py/scripts/addons/io_scene_obj/export_obj.py	2011-06-06 04:12:59 UTC (rev 2004)
@@ -345,7 +345,7 @@
 
             # Nurbs curve support
             if EXPORT_CURVE_AS_NURBS and test_nurbs_compat(ob):
-                ob_mat = ob_mat * EXPORT_GLOBAL_MATRIX
+                ob_mat = EXPORT_GLOBAL_MATRIX * ob_mat
                 totverts += write_nurb(file, ob, ob_mat)
                 continue
             # END NURBS
@@ -354,7 +354,7 @@
                 continue
 
             me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW')
-            me.transform(ob_mat * EXPORT_GLOBAL_MATRIX)
+            me.transform(EXPORT_GLOBAL_MATRIX * ob_mat)
 
 #           # Will work for non meshes now! :)
 #           me= BPyMesh.getMeshFromObject(ob, containerMesh, EXPORT_APPLY_MODIFIERS, EXPORT_POLYGROUPS, scn)



More information about the Bf-extensions-cvs mailing list