mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
Fix animations not playing in rwviewer
This commit is contained in:
parent
8575408ca2
commit
ceb711b25e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user