mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #79916 from smix8/navobstacle_mutex_4.x
Update NavObstacle creation to new Mutex style
This commit is contained in:
commit
8367152723
@ -816,8 +816,8 @@ COMMAND_2(agent_set_avoidance_priority, RID, p_agent, real_t, p_priority) {
|
||||
}
|
||||
|
||||
RID GodotNavigationServer::obstacle_create() {
|
||||
GodotNavigationServer *mut_this = const_cast<GodotNavigationServer *>(this);
|
||||
MutexLock lock(mut_this->operations_mutex);
|
||||
MutexLock lock(operations_mutex);
|
||||
|
||||
RID rid = obstacle_owner.make_rid();
|
||||
NavObstacle *obstacle = obstacle_owner.get_or_null(rid);
|
||||
obstacle->set_self(rid);
|
||||
|
Loading…
Reference in New Issue
Block a user