[Bf-extensions-cvs] [4be5087a] blender2.8: io_scene_gltf2: delay 'datetime' import
Campbell Barton
noreply at git.blender.org
Thu Nov 29 20:41:19 CET 2018
Commit: 4be5087a68394664470bb5398600a6c2dc5c0944
Author: Campbell Barton
Date: Fri Nov 30 06:40:29 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBA4be5087a68394664470bb5398600a6c2dc5c0944
io_scene_gltf2: delay 'datetime' import
===================================================================
M io_scene_gltf2/__init__.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 73a4c6d8..a87e3715 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -18,7 +18,6 @@
import os
import bpy
-import datetime
from bpy_extras.io_utils import ImportHelper, ExportHelper
from bpy.types import Operator, AddonPreferences
@@ -306,6 +305,7 @@ class ExportGLTF2_Base:
context.scene[self.scene_key] = export_props
def execute(self, context):
+ import datetime
from .blender.exp import gltf2_blender_export
if self.will_save_settings:
More information about the Bf-extensions-cvs
mailing list