Ensure that the geometry has the animation enabled (closes #2731)

This commit is contained in:
Alexander Bock
2023-06-03 02:50:39 +02:00
parent 1bb36635c6
commit 9d5e50d930

View File

@@ -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(