mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 02:48:12 +02:00
Switched to animation frames reference
This commit is contained in:
parent
cd8ad23dd1
commit
805cd78728
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ static AnimPose composeAnimPose(const HFMJoint& joint, const glm::quat rotation,
|
||||||
|
|
||||||
void ScriptableAvatar::update(float deltatime) {
|
void ScriptableAvatar::update(float deltatime) {
|
||||||
// Run animation
|
// Run animation
|
||||||
auto frames = _animation->getFrames();
|
Q_ASSERT(QThread::currentThread() == thread());
|
||||||
|
Q_ASSERT(thread() == _animation->thread());
|
||||||
|
auto frames = _animation->getFramesReference();
|
||||||
if (_animation && _animation->isLoaded() && frames.size() > 0 && !_bind.isNull() && _bind->isLoaded()) {
|
if (_animation && _animation->isLoaded() && frames.size() > 0 && !_bind.isNull() && _bind->isLoaded()) {
|
||||||
if (!_animSkeleton) {
|
if (!_animSkeleton) {
|
||||||
_animSkeleton = std::make_shared<AnimSkeleton>(_bind->getHFMModel());
|
_animSkeleton = std::make_shared<AnimSkeleton>(_bind->getHFMModel());
|
||||||
|
|
Loading…
Reference in a new issue