mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01:00
Make sure the dummy navigation server is used automatically if the normal is disabled.
This commit is contained in:
parent
88d12ace16
commit
1c505fe527
@ -60,10 +60,10 @@ Navigation2DServer *new_2d_server() {
|
||||
void register_navigation_types(ModuleRegistrationLevel p_level) {
|
||||
if (p_level == MODULE_REGISTRATION_LEVEL_SINGLETON) {
|
||||
NavigationServerManager::register_server("PandemoniumNavigation", new_server);
|
||||
NavigationServerManager::set_default_server("PandemoniumNavigation");
|
||||
NavigationServerManager::set_default_server("PandemoniumNavigation", 10);
|
||||
|
||||
Navigation2DServerManager::register_server("PandemoniumNavigation", new_2d_server);
|
||||
Navigation2DServerManager::set_default_server("PandemoniumNavigation");
|
||||
Navigation2DServerManager::set_default_server("PandemoniumNavigation", 10);
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
_nav_mesh_generator = memnew(NavigationMeshGenerator);
|
||||
|
@ -46,7 +46,10 @@ Navigation2DServer *new_dummy_2d_server() {
|
||||
void register_navigation_dummy_types(ModuleRegistrationLevel p_level) {
|
||||
if (p_level == MODULE_REGISTRATION_LEVEL_SINGLETON) {
|
||||
NavigationServerManager::register_server("Dummy", new_dummy_server);
|
||||
NavigationServerManager::set_default_server("Dummy");
|
||||
|
||||
Navigation2DServerManager::register_server("Dummy", new_dummy_2d_server);
|
||||
Navigation2DServerManager::set_default_server("Dummy");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user