From ceb711b25eb12bf004df13fd0d8516c0655ff0a8 Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Sat, 16 Apr 2016 15:05:36 +0100 Subject: [PATCH] Fix animations not playing in rwviewer --- rwviewer/ViewerWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rwviewer/ViewerWidget.cpp b/rwviewer/ViewerWidget.cpp index 8bcd45b1..1a418b04 100644 --- a/rwviewer/ViewerWidget.cpp +++ b/rwviewer/ViewerWidget.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -80,8 +81,9 @@ void ViewerWidget::paintGL() r.setViewport(width(), height()); - if(dummyObject && dummyObject->animator) { + if(dummyObject && dummyObject->animator && dummyObject->skeleton) { dummyObject->animator->tick(1.f/60.f); + dummyObject->skeleton->interpolate(1.f); } if(activeModel) {