[Bf-extensions-cvs] [4225323a] master: 3D-Print: remove export VRML option

Mikhail Rachinskiy noreply at git.blender.org
Wed Oct 16 16:09:43 CEST 2019


Commit: 4225323a26c8bc41a35d928acd13e470f81f54fe
Author: Mikhail Rachinskiy
Date:   Wed Oct 16 18:07:05 2019 +0400
Branches: master
https://developer.blender.org/rBA4225323a26c8bc41a35d928acd13e470f81f54fe

3D-Print: remove export VRML option

===================================================================

M	object_print3d_utils/__init__.py
M	object_print3d_utils/export.py

===================================================================

diff --git a/object_print3d_utils/__init__.py b/object_print3d_utils/__init__.py
index 9d21a032..d567bd77 100644
--- a/object_print3d_utils/__init__.py
+++ b/object_print3d_utils/__init__.py
@@ -63,7 +63,6 @@ class SceneProperties(PropertyGroup):
         items=(
             ('STL', "STL", ""),
             ('PLY', "PLY", ""),
-            ('WRL', "VRML2", ""),
             ('X3D', "X3D", ""),
             ('OBJ', "OBJ", ""),
         ),
diff --git a/object_print3d_utils/export.py b/object_print3d_utils/export.py
index 022eff17..8c61400f 100644
--- a/object_print3d_utils/export.py
+++ b/object_print3d_utils/export.py
@@ -127,16 +127,6 @@ def write_mesh(context, report_cb):
             path_mode=path_mode,
             global_scale=global_scale,
         )
-    elif export_format == 'WRL':
-        addon_ensure("io_scene_vrml2")
-        filepath = bpy.path.ensure_ext(filepath, ".wrl")
-        ret = bpy.ops.export_scene.vrml2(
-            filepath=filepath,
-            use_mesh_modifiers=True,
-            use_selection=True,
-            path_mode=path_mode,
-            global_scale=global_scale,
-        )
     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