mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:29:42 +02:00
Don't evaluate overPoses if alpha is 0.0.
This commit is contained in:
parent
f843c01b35
commit
aad6958b68
1 changed files with 12 additions and 7 deletions
|
@ -54,6 +54,10 @@ const AnimPoseVec& AnimOverlay::evaluate(const AnimVariantMap& animVars, const A
|
|||
|
||||
if (_children.size() >= 2) {
|
||||
auto& underPoses = _children[1]->evaluate(animVars, context, dt, triggersOut);
|
||||
|
||||
if (_alpha == 0.0f) {
|
||||
_poses = underPoses;
|
||||
} else {
|
||||
auto& overPoses = _children[0]->overlay(animVars, context, dt, triggersOut, underPoses);
|
||||
|
||||
if (underPoses.size() > 0 && underPoses.size() == overPoses.size()) {
|
||||
|
@ -66,6 +70,7 @@ const AnimPoseVec& AnimOverlay::evaluate(const AnimVariantMap& animVars, const A
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
processOutputJoints(triggersOut);
|
||||
|
||||
|
|
Loading…
Reference in a new issue