You've already forked godot
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user