1
0
Fork 0

Merge pull request #101535 from smix8/locknroll

[4.3] Remove outer navigation map read locks
This commit is contained in:
Rémi Verschelde 2025-01-30 12:53:01 +01:00
commit 7f166be687
1 changed files with 0 additions and 3 deletions

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();