mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
Ensure that the geometry has the animation enabled (closes #2731)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user