mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 03:06:35 +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,
|
||||
float jawOpen, std::vector<float>& coefficients) const {
|
||||
coefficients.resize(max((int)coefficients.size(), _jawOpenIndex + 1));
|
||||
qFill(coefficients.begin(), coefficients.end(), 0.0f);
|
||||
coefficients[_leftBlinkIndex] = leftBlink;
|
||||
coefficients[_rightBlinkIndex] = rightBlink;
|
||||
coefficients[_browUpCenterIndex] = browUp;
|
||||
|
|
Loading…
Reference in a new issue