mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +02:00
clarify fake blendshape array size
This commit is contained in:
parent
1d68413b66
commit
9394f72b18
1 changed files with 3 additions and 2 deletions
|
@ -130,8 +130,9 @@ void Faceshift::updateFakeCoefficients(float leftBlink, float rightBlink, float
|
|||
const int FUNNEL_BLENDSHAPE = 40;
|
||||
const int SMILE_LEFT_BLENDSHAPE = 28;
|
||||
const int SMILE_RIGHT_BLENDSHAPE = 29;
|
||||
coefficients.resize(max((int)coefficients.size(), FUNNEL_BLENDSHAPE + 1));
|
||||
coefficients.resize(max((int)coefficients.size(), 48));
|
||||
const int MAX_FAKE_BLENDSHAPE = 40; // Largest modified blendshape from above and below
|
||||
|
||||
coefficients.resize(max((int)coefficients.size(), MAX_FAKE_BLENDSHAPE + 1));
|
||||
qFill(coefficients.begin(), coefficients.end(), 0.0f);
|
||||
coefficients[_leftBlinkIndex] = leftBlink;
|
||||
coefficients[_rightBlinkIndex] = rightBlink;
|
||||
|
|
Loading…
Reference in a new issue