diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2021-01-06 16:00:15 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2021-01-06 16:00:39 +0300 |
commit | 82e528ea362069a0e472ec7b09a6dd36ca40eeaf (patch) | |
tree | 3e01800f5e5cb36fda997a3da0fa9afd0c9aa721 /blenderkit/bg_blender.py | |
parent | 083251ec45b2ded5dd7b401af94e7957a060af88 (diff) |
BlenderKit: fix T84391
This issue was caused by wrong use of importlib, turns out this was wrong from the very beginning and that I never studied how reimporting of libs woks.
Now the speed of script reload seems not to be influenced by BlenderKit anymore.
Diffstat (limited to 'blenderkit/bg_blender.py')
-rw-r--r-- | blenderkit/bg_blender.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/blenderkit/bg_blender.py b/blenderkit/bg_blender.py index 128cf457..7dda1559 100644 --- a/blenderkit/bg_blender.py +++ b/blenderkit/bg_blender.py @@ -16,12 +16,8 @@ # # ##### END GPL LICENSE BLOCK ##### -if "bpy" in locals(): - from importlib import reload - utils = reload(utils) -else: - from blenderkit import utils +from blenderkit import utils import bpy import sys, threading, os |