You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
fixed AnimationNodeTransition when xfade time is zero
(cherry picked from commit 02d8166427)
This commit is contained in:
committed by
Rémi Verschelde
parent
0316d50ece
commit
a95b015968
@@ -724,7 +724,7 @@ float AnimationNodeTransition::process(float p_time, bool p_seek) {
|
|||||||
|
|
||||||
} else { // cross-fading from prev to current
|
} 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
|
if (!p_seek && switched) { //just switched, seek to start of current
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user