fixed AnimationNodeTransition when xfade time is zero
This commit is contained in:
parent
c30cffe1b0
commit
02d8166427
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ double AnimationNodeTransition::process(double p_time, bool p_seek) {
|
|||
|
||||
} else { // cross-fading from prev to current
|
||||
|
||||
float blend = xfade ? (prev_xfading / xfade) : 1;
|
||||
float blend = xfade == 0 ? 0 : (prev_xfading / xfade);
|
||||
|
||||
if (!p_seek && switched) { //just switched, seek to start of current
|
||||
|
||||
|
|
Loading…
Reference in a new issue