diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-28 09:12:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 09:12:45 +0200 |
commit | a5f6c2473429f0a5e93b0d6a7eafa98b85da0fb1 (patch) | |
tree | 821b0d6f0744e18cbb3c0e864a6ba1a2afd15f0f | |
parent | a6916d1f179f760f015f385c01729d205af97abe (diff) | |
parent | fa4d9c944637ae37c798806980cd78c806570da7 (diff) |
Merge pull request #40768 from ConorLPBoyle/skeletonik-reload-goal-fix
Fixed reload_goal not being called when SkeletonIK3D::start is invoke…
-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); |