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:
parent
2c7fcdd7f9
commit
b23552922f
5 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue