From 9d5e50d9300a89ecf0276b7687ede638d2e85f67 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sat, 3 Jun 2023 02:50:39 +0200 Subject: [PATCH] Ensure that the geometry has the animation enabled (closes #2731) --- modules/base/rendering/renderablemodel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/base/rendering/renderablemodel.cpp b/modules/base/rendering/renderablemodel.cpp index eaefd94832..e8eb35b013 100644 --- a/modules/base/rendering/renderablemodel.cpp +++ b/modules/base/rendering/renderablemodel.cpp @@ -547,6 +547,13 @@ void RenderableModel::initializeGL() { ); _modelHasAnimation = _geometry->hasAnimation(); + // @TODO (abock, 2023-06-03) Leaving this here to address issue #2731. The + // _modelHasAnimation has not been set to true in the constructor causing the + // `enableAnimation` function not to be called + if (_enableAnimation) { + _geometry->enableAnimation(true); + } + if (!_modelHasAnimation) { if (!_animationStart.empty()) { LWARNING(fmt::format(