You've already forked godot
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:
@@ -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 {
|
Vector3 NavMap::get_closest_point(const Vector3 &p_point) const {
|
||||||
RWLockRead read_lock(map_rwlock);
|
|
||||||
if (iteration_id == 0) {
|
if (iteration_id == 0) {
|
||||||
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
||||||
return Vector3();
|
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 {
|
Vector3 NavMap::get_closest_point_normal(const Vector3 &p_point) const {
|
||||||
RWLockRead read_lock(map_rwlock);
|
|
||||||
if (iteration_id == 0) {
|
if (iteration_id == 0) {
|
||||||
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
||||||
return Vector3();
|
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 {
|
RID NavMap::get_closest_point_owner(const Vector3 &p_point) const {
|
||||||
RWLockRead read_lock(map_rwlock);
|
|
||||||
if (iteration_id == 0) {
|
if (iteration_id == 0) {
|
||||||
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
NAVMAP_ITERATION_ZERO_ERROR_MSG();
|
||||||
return RID();
|
return RID();
|
||||||
|
|||||||
Reference in New Issue
Block a user