1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-27 15:57:02 +00:00

Remove outer navigation map read locks

Removes outer navigation map read locks.
This commit is contained in:
smix8
2025-01-14 12:32:05 +01:00
parent 90f21a35c7
commit 5e5e1a2182

View File

@@ -670,7 +670,6 @@ Vector3 NavMap::get_closest_point_to_segment(const Vector3 &p_from, const Vector
}
Vector3 NavMap::get_closest_point(const Vector3 &p_point) const {
RWLockRead read_lock(map_rwlock);
if (iteration_id == 0) {
NAVMAP_ITERATION_ZERO_ERROR_MSG();
return Vector3();
@@ -680,7 +679,6 @@ Vector3 NavMap::get_closest_point(const Vector3 &p_point) const {
}
Vector3 NavMap::get_closest_point_normal(const Vector3 &p_point) const {
RWLockRead read_lock(map_rwlock);
if (iteration_id == 0) {
NAVMAP_ITERATION_ZERO_ERROR_MSG();
return Vector3();
@@ -690,7 +688,6 @@ Vector3 NavMap::get_closest_point_normal(const Vector3 &p_point) const {
}
RID NavMap::get_closest_point_owner(const Vector3 &p_point) const {
RWLockRead read_lock(map_rwlock);
if (iteration_id == 0) {
NAVMAP_ITERATION_ZERO_ERROR_MSG();
return RID();