diff options
author | ConorLPBoyle <ConorLPBoyle@users.noreply.github.com> | 2020-07-27 19:52:51 +0300 |
---|---|---|
committer | ConorLPBoyle <ConorLPBoyle@users.noreply.github.com> | 2020-07-27 20:18:16 +0300 |
commit | fa4d9c944637ae37c798806980cd78c806570da7 (patch) | |
tree | 526ef2d5ede37ae0da5c25d548bdcd5ebdc50af4 | |
parent | 09a2b77b2dba0fe129cfe0ab36f842ff8b528f2d (diff) |
Fixed reload_goal not being called when SkeletonIK3D::start is invoked with p_one_time = true
-rw-r--r-- | scene/3d/skeleton_ik_3d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/skeleton_ik_3d.cpp b/scene/3d/skeleton_ik_3d.cpp index 9023f3c68a..32d7afd5df 100644 --- a/scene/3d/skeleton_ik_3d.cpp +++ b/scene/3d/skeleton_ik_3d.cpp @@ -511,6 +511,11 @@ bool SkeletonIK3D::is_running() { void SkeletonIK3D::start(bool p_one_time) { if (p_one_time) { set_process_internal(false); + + if (target_node_override) { + reload_goal(); + } + _solve_chain(); } else { set_process_internal(true); |