mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-20 22:17:41 -05:00
remove redundant access.
This commit is contained in:
parent
ae1bec1e95
commit
18850bb04c
|
|
@ -66,19 +66,17 @@ namespace UniVRM10
|
|||
// 3. Set procedural key's weights.
|
||||
foreach (var key in _keys)
|
||||
{
|
||||
var weight = inputWeights[key];
|
||||
|
||||
if (key.IsBlink)
|
||||
{
|
||||
actualWeights[key] = weight * blinkMultiplier;
|
||||
actualWeights[key] = inputWeights[key] * blinkMultiplier;
|
||||
}
|
||||
else if (key.IsLookAt)
|
||||
{
|
||||
actualWeights[key] = weight * lookAtMultiplier;
|
||||
actualWeights[key] = inputWeights[key] * lookAtMultiplier;
|
||||
}
|
||||
else if (key.IsMouth)
|
||||
{
|
||||
actualWeights[key] = weight * mouthMultiplier;
|
||||
actualWeights[key] = inputWeights[key] * mouthMultiplier;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user