1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Fix animations not playing in rwviewer

This commit is contained in:
Daniel Evans 2016-04-16 15:05:36 +01:00
parent 8575408ca2
commit ceb711b25e

View File

@ -6,6 +6,7 @@
#include <QMouseEvent>
#include <objects/GameObject.hpp>
#include <engine/Animator.hpp>
#include <data/Skeleton.hpp>
#include <QFileDialog>
#include <algorithm>
@ -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) {