[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4364] contrib/py/scripts/addons/ object_print3d_utils/export.py: update for change to VRML2 export operator.

Campbell Barton ideasman42 at gmail.com
Tue Mar 12 08:22:44 CET 2013


Revision: 4364
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4364
Author:   campbellbarton
Date:     2013-03-12 07:22:44 +0000 (Tue, 12 Mar 2013)
Log Message:
-----------
update for change to VRML2 export operator.

Modified Paths:
--------------
    contrib/py/scripts/addons/object_print3d_utils/export.py

Modified: contrib/py/scripts/addons/object_print3d_utils/export.py
===================================================================
--- contrib/py/scripts/addons/object_print3d_utils/export.py	2013-03-12 07:21:52 UTC (rev 4363)
+++ contrib/py/scripts/addons/object_print3d_utils/export.py	2013-03-12 07:22:44 UTC (rev 4364)
@@ -87,22 +87,24 @@
                 filepath=filepath,
                 use_mesh_modifiers=True,
                 )
-    elif export_format == 'WRL':
-        addon_ensure("io_mesh_vrml2")
-        filepath = bpy.path.ensure_ext(filepath, ".wrl")
-        ret = bpy.ops.export_mesh.vrml2(
-                context_override,
-                filepath=filepath,
-                use_mesh_modifiers=True,
-                )
     elif export_format == 'X3D':
         addon_ensure("io_scene_x3d")
         filepath = bpy.path.ensure_ext(filepath, ".x3d")
         ret = bpy.ops.export_scene.x3d(
                 context_override,
-                filepath=filepath, use_mesh_modifiers=True,
+                filepath=filepath,
+                use_mesh_modifiers=True,
                 use_selection=True,
                 )
+    elif export_format == 'WRL':
+        addon_ensure("io_scene_vrml2")
+        filepath = bpy.path.ensure_ext(filepath, ".wrl")
+        ret = bpy.ops.export_scene.vrml2(
+                context_override,
+                filepath=filepath,
+                use_mesh_modifiers=True,
+                use_selection=True,
+                )
     elif export_format == 'OBJ':
         addon_ensure("io_scene_obj")
         filepath = bpy.path.ensure_ext(filepath, ".obj")



More information about the Bf-extensions-cvs mailing list