summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2017-02-06 22:44:22 +0000
committerSaracen <SaracenOne@gmail.com>2017-02-28 21:52:33 +0000
commit5e938f000136c076f9f35b8332dc7c022687a983 (patch)
treea8e79b3f4a557ce4097791f5622728c69d22764f /scene/animation
parent0f8c6dd3822c38b8145f08265abb9eba479f4d15 (diff)
Inf and NaN support added to GDScript.
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp
index ed4ec23d54..d7e98ddd2b 100644
--- a/scene/animation/animation_tree_player.cpp
+++ b/scene/animation/animation_tree_player.cpp
@@ -711,7 +711,7 @@ float AnimationTreePlayer::_process_node(const StringName& p_node,AnimationNode
else
rem = _process_node(tsn->inputs[0].node,r_prev_anim,p_time*tsn->scale,false,p_fallback_weight,p_weights);
if (tsn->scale == 0)
- return INFINITY;
+ return Math_INF;
else
return rem / tsn->scale;