mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:37:19 +02:00
Apply blendshapes to skeleton as well as head.
This commit is contained in:
parent
1adf3d2878
commit
df192e297c
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) {
|
||||||
setRotation(_owningAvatar->getOrientation() * refOrientation);
|
setRotation(_owningAvatar->getOrientation() * refOrientation);
|
||||||
const float MODEL_SCALE = 0.0006f;
|
const float MODEL_SCALE = 0.0006f;
|
||||||
setScale(glm::vec3(1.0f, 1.0f, 1.0f) * _owningAvatar->getScale() * MODEL_SCALE);
|
setScale(glm::vec3(1.0f, 1.0f, 1.0f) * _owningAvatar->getScale() * MODEL_SCALE);
|
||||||
|
setBlendshapeCoefficients(_owningAvatar->getHead()->getBlendshapeCoefficients());
|
||||||
|
|
||||||
Model::simulate(deltaTime, fullUpdate);
|
Model::simulate(deltaTime, fullUpdate);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue