Skip to content
Snippets Groups Projects
Commit 63315d80 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#27593] Obj exporter errors reappeared

parent c53c90b9
No related branches found
No related tags found
No related merge requests found
...@@ -345,7 +345,7 @@ def write_file(filepath, objects, scene, ...@@ -345,7 +345,7 @@ def write_file(filepath, objects, scene,
# Nurbs curve support # Nurbs curve support
if EXPORT_CURVE_AS_NURBS and test_nurbs_compat(ob): 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) totverts += write_nurb(file, ob, ob_mat)
continue continue
# END NURBS # END NURBS
...@@ -354,7 +354,7 @@ def write_file(filepath, objects, scene, ...@@ -354,7 +354,7 @@ def write_file(filepath, objects, scene,
continue continue
me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW') 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! :) # # Will work for non meshes now! :)
# me= BPyMesh.getMeshFromObject(ob, containerMesh, EXPORT_APPLY_MODIFIERS, EXPORT_POLYGROUPS, scn) # me= BPyMesh.getMeshFromObject(ob, containerMesh, EXPORT_APPLY_MODIFIERS, EXPORT_POLYGROUPS, scn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment