1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Rework const on NavigationServer methods

`const` is used on all methods, even when they cause modification of the server.  This reworks the methods of the server to only use `const` on method that don't change the state of the server.
This commit is contained in:
Josh Jones
2022-12-21 14:21:43 -08:00
parent fcba87e696
commit a0715b30f9
16 changed files with 329 additions and 329 deletions

View File

@@ -2607,7 +2607,7 @@ bool Main::start() {
if (debug_navigation) {
sml->set_debug_navigation_hint(true);
NavigationServer3D::get_singleton()->set_active(true);
NavigationServer3D::get_singleton_mut()->set_debug_enabled(true);
NavigationServer3D::get_singleton()->set_debug_enabled(true);
}
#endif
@@ -3032,7 +3032,7 @@ bool Main::iteration() {
break;
}
NavigationServer3D::get_singleton_mut()->process(physics_step * time_scale);
NavigationServer3D::get_singleton()->process(physics_step * time_scale);
message_queue->flush();