NavigationServer: Restore constness for thread safe get_singleton
This was removed by mistake in #47024, NavigationServer uses internal mutability for thread safety, and removing `const` breaks the contract.
This commit is contained in:
@@ -84,7 +84,7 @@ void NavigationServer3D::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("map_changed", PropertyInfo(Variant::RID, "map")));
|
||||
}
|
||||
|
||||
NavigationServer3D *NavigationServer3D::get_singleton() {
|
||||
const NavigationServer3D *NavigationServer3D::get_singleton() {
|
||||
return singleton;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user