diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-10 02:38:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-10 02:38:49 +0300 |
commit | a7a6252882c501ef5dd41e75bbcdbc8d030917a0 (patch) | |
tree | f4cd4ba363ee3dbdeaa32076ab14fbc37335f540 | |
parent | d618d260577097866d85e3712a135a5ce57a76c3 (diff) |
io_scene_gltf2: lazy import gltf2_io_draco_compression_extension
-rwxr-xr-x | io_scene_gltf2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 935f84ad..0548f2ec 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -60,7 +60,6 @@ from bpy.props import (StringProperty, IntProperty) from bpy.types import Operator from bpy_extras.io_utils import ImportHelper, ExportHelper -from io_scene_gltf2.io.exp import gltf2_io_draco_compression_extension # @@ -72,6 +71,7 @@ class ExportGLTF2_Base: # TODO: refactor to avoid boilerplate def __init__(self): + from io_scene_gltf2.io.exp import gltf2_io_draco_compression_extension self.is_draco_available = gltf2_io_draco_compression_extension.dll_exists() bl_options = {'UNDO', 'PRESET'} @@ -551,6 +551,7 @@ class GLTF_PT_export_geometry_compression(bpy.types.Panel): bl_options = {'DEFAULT_CLOSED'} def __init__(self): + from io_scene_gltf2.io.exp import gltf2_io_draco_compression_extension self.is_draco_available = gltf2_io_draco_compression_extension.dll_exists() @classmethod @@ -833,4 +834,3 @@ def unregister(): # remove from the export / import menu bpy.types.TOPBAR_MT_file_export.remove(menu_func_export) bpy.types.TOPBAR_MT_file_import.remove(menu_func_import) - |