[Bf-blender-cvs] [1a8dd57aea] app-templates: Run template registration on startup (without explicitly selecting)
Campbell Barton
noreply at git.blender.org
Wed Mar 15 20:56:58 CET 2017
Commit: 1a8dd57aeaeb7862595d6fd748ec9806a461cecc
Author: Campbell Barton
Date: Thu Mar 16 06:57:44 2017 +1100
Branches: app-templates
https://developer.blender.org/rB1a8dd57aeaeb7862595d6fd748ec9806a461cecc
Run template registration on startup (without explicitly selecting)
===================================================================
M release/scripts/modules/bpy/utils/__init__.py
===================================================================
diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py
index 31d00dfebf..d216a12889 100644
--- a/release/scripts/modules/bpy/utils/__init__.py
+++ b/release/scripts/modules/bpy/utils/__init__.py
@@ -68,6 +68,7 @@ import os as _os
import sys as _sys
import addon_utils as _addon_utils
+import app_template_utils as _app_template_utils
_user_preferences = _bpy.context.user_preferences
_script_module_dirs = "startup", "modules"
@@ -246,6 +247,9 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
for mod in modules_from_path(path, loaded_modules):
test_register(mod)
+ # load template (if set)
+ _app_template_utils.reset(reload_scripts=reload_scripts)
+
# deal with addons separately
_initialize = getattr(_addon_utils, "_initialize", None)
if _initialize is not None:
More information about the Bf-blender-cvs
mailing list