From 82e528ea362069a0e472ec7b09a6dd36ca40eeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Wed, 6 Jan 2021 14:00:15 +0100 Subject: 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. --- blenderkit/autothumb_material_bg.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'blenderkit/autothumb_material_bg.py') diff --git a/blenderkit/autothumb_material_bg.py b/blenderkit/autothumb_material_bg.py index c8d34979..3e1c2f2b 100644 --- a/blenderkit/autothumb_material_bg.py +++ b/blenderkit/autothumb_material_bg.py @@ -17,14 +17,8 @@ # ##### END GPL LICENSE BLOCK ##### -if "bpy" in locals(): - from importlib import reload - - utils = reload(utils) - append_link = reload(append_link) - bg_blender = reload(bg_blender) -else: - from blenderkit import utils, append_link, bg_blender + +from blenderkit import utils, append_link, bg_blender import sys, json, math import bpy -- cgit v1.2.3