From a41cf80049c07977079d0b215398dc4225b63038 Mon Sep 17 00:00:00 2001 From: Ashton Larkin Date: Fri, 9 Apr 2021 17:37:28 -0400 Subject: [PATCH] Fix 'invalid animation update data' msg for actors (#754) Signed-off-by: Ashton Larkin --- src/rendering/RenderUtil.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/rendering/RenderUtil.cc b/src/rendering/RenderUtil.cc index 382a48ae86..1be3ee7d5a 100644 --- a/src/rendering/RenderUtil.cc +++ b/src/rendering/RenderUtil.cc @@ -1653,8 +1653,13 @@ void RenderUtilPrivate::UpdateRenderingEntities( // Trajectory info from SDF so ign-rendering can calculate bone poses else { - this->actorAnimationData[_entity] = - this->sceneManager.ActorAnimationAt(_entity, this->simTime); + auto animData = + this->sceneManager.ActorAnimationAt(_entity, this->simTime); + + if (animData.valid) + { + this->actorAnimationData[_entity] = animData; + } } // Trajectory pose set by other systems