From 957c5371c8342681c6f1c235307bab90d7c323a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Sun, 26 Sep 2021 22:34:09 +0200 Subject: [PATCH] Fix add-on reloading when there are new unimported node files --- blender/arm/logicnode/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blender/arm/logicnode/__init__.py b/blender/arm/logicnode/__init__.py index f8134402..102a1b45 100644 --- a/blender/arm/logicnode/__init__.py +++ b/blender/arm/logicnode/__init__.py @@ -75,7 +75,7 @@ def init_nodes(): # Only look at modules in sub packages elif module_name.rsplit('.', 1)[0] != __package__: - if 'HAS_RELOADED' not in globals(): + if 'HAS_RELOADED' not in globals() or module_name not in sys.modules: _module = importlib.import_module(module_name) else: # Reload the module if the SDK was reloaded at least once