Fix release build is not able to use LimboUtility
This commit is contained in:
parent
24a460be59
commit
5baddc2f3e
|
@ -167,12 +167,12 @@ void initialize_limboai_module(ModuleInitializationLevel p_level) {
|
||||||
_limbo_utility = memnew(LimboUtility);
|
_limbo_utility = memnew(LimboUtility);
|
||||||
GDREGISTER_CLASS(LimboUtility);
|
GDREGISTER_CLASS(LimboUtility);
|
||||||
|
|
||||||
|
Engine::get_singleton()->add_singleton(Engine::Singleton("LimboUtility", LimboUtility::get_singleton()));
|
||||||
LimboStringNames::create();
|
LimboStringNames::create();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
|
if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
|
||||||
Engine::get_singleton()->add_singleton(Engine::Singleton("LimboUtility", LimboUtility::get_singleton()));
|
|
||||||
EditorPlugins::add_by_type<LimboAIEditorPlugin>();
|
EditorPlugins::add_by_type<LimboAIEditorPlugin>();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue