Merge pull request #2693 from ChrisLR/fix-prototype-loading-xyzgrid
Fix Prototype Loading when using injected prototypes
This commit is contained in:
commit
8e7f2befa5
1 changed files with 3 additions and 1 deletions
|
|
@ -528,8 +528,10 @@ def search_prototype(
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# This will load the prototypes the first time they are searched
|
# This will load the prototypes the first time they are searched
|
||||||
if not _MODULE_PROTOTYPE_MODULES:
|
loaded = getattr(load_module_prototypes, '_LOADED', False)
|
||||||
|
if not loaded:
|
||||||
load_module_prototypes()
|
load_module_prototypes()
|
||||||
|
setattr(load_module_prototypes, '_LOADED', True)
|
||||||
|
|
||||||
# prototype keys are always in lowecase
|
# prototype keys are always in lowecase
|
||||||
if key:
|
if key:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue