diff options
author | Vilem Duha <vilem.duha@gmail.com> | 2019-05-29 16:01:01 +0300 |
---|---|---|
committer | Vilem Duha <vilem.duha@gmail.com> | 2019-06-01 19:49:18 +0300 |
commit | 85fd48c32cbdb42f81b26bfb81d411d83e0898b0 (patch) | |
tree | bef0f8366dbe1aca4953cad20e87051468c36651 /blenderkit/overrides.py | |
parent | 88d0e75f1f35af1ea208565a6eb187162ed8451b (diff) |
BlenderKit: convert all imports to importlib
+ new Oauth script version (finished in next commit)
+split login/signup buttons
Diffstat (limited to 'blenderkit/overrides.py')
-rw-r--r-- | blenderkit/overrides.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/blenderkit/overrides.py b/blenderkit/overrides.py index d9fc8028..348a3d21 100644 --- a/blenderkit/overrides.py +++ b/blenderkit/overrides.py @@ -16,12 +16,18 @@ # # ##### END GPL LICENSE BLOCK ##### + +if "bpy" in locals(): + from importlib import reload + + utils = reload(utils) +else: + from blenderkit import utils + import bpy, mathutils from bpy.types import ( Operator) -from blenderkit import utils - def getNodes(nt, node_type='OUTPUT_MATERIAL'): chnodes = nt.nodes[:] |