You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix crash in 'NavigationAgent3D', fixes #78910
This commit is contained in:
@@ -220,7 +220,7 @@ void NavigationAgent3D::_notification(int p_what) {
|
|||||||
set_agent_parent(get_parent());
|
set_agent_parent(get_parent());
|
||||||
set_physics_process_internal(true);
|
set_physics_process_internal(true);
|
||||||
|
|
||||||
if (avoidance_enabled) {
|
if (agent_parent && avoidance_enabled) {
|
||||||
NavigationServer3D::get_singleton()->agent_set_position(agent, agent_parent->get_global_transform().origin);
|
NavigationServer3D::get_singleton()->agent_set_position(agent, agent_parent->get_global_transform().origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user