mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:14:34 +02:00
When we start setting the fake coefficients after we set the real ones, make
sure all of the other coefficients are zero.
This commit is contained in:
parent
4ae5203f38
commit
38118fdab0
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ void Faceshift::reset() {
|
||||||
void Faceshift::updateFakeCoefficients(float leftBlink, float rightBlink, float browUp,
|
void Faceshift::updateFakeCoefficients(float leftBlink, float rightBlink, float browUp,
|
||||||
float jawOpen, std::vector<float>& coefficients) const {
|
float jawOpen, std::vector<float>& coefficients) const {
|
||||||
coefficients.resize(max((int)coefficients.size(), _jawOpenIndex + 1));
|
coefficients.resize(max((int)coefficients.size(), _jawOpenIndex + 1));
|
||||||
|
qFill(coefficients.begin(), coefficients.end(), 0.0f);
|
||||||
coefficients[_leftBlinkIndex] = leftBlink;
|
coefficients[_leftBlinkIndex] = leftBlink;
|
||||||
coefficients[_rightBlinkIndex] = rightBlink;
|
coefficients[_rightBlinkIndex] = rightBlink;
|
||||||
coefficients[_browUpCenterIndex] = browUp;
|
coefficients[_browUpCenterIndex] = browUp;
|
||||||
|
|
Loading…
Reference in a new issue