Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Merge pull request #118789 from a-johnston/animation_node_observers

Thaddeus Crews3bc97b79be24
diff --cc scene/animation/animation_blend_tree.cpp
index a5d6e23b62f,b27742f5ff6..3f6bbafd0af
--- a/scene/animation/animation_blend_tree.cpp
+++ b/scene/animation/animation_blend_tree.cpp
@@@ -598,17 -614,18 +614,18 @@@ AnimationNode::NodeTimeInfo AnimationNo
double abs_delta = Math::abs(p_delta);
bool p_seek = p_playback_info.seeked;
bool p_is_external_seeking = p_playback_info.is_external_seeking;
+ double prev_fade_in_remaining = cur_fade_in_remaining;
bool do_start = cur_request == ONE_SHOT_REQUEST_FIRE;
-
- bool is_reset = Math::is_zero_approx(p_time) && p_seek && !p_is_external_seeking;
- if (is_reset && cur_internal_active) {
- do_start = true;
- }
-
bool is_abort = cur_request == ONE_SHOT_REQUEST_ABORT;
- if (is_reset && !do_start && (is_fading_out || (abort_on_reset && cur_active))) {
- is_abort = true;
+ bool is_reset = Math::is_zero_approx(p_time) && p_seek && !p_is_external_seeking;
+ if (is_reset) {
+ if (!do_start && (is_fading_out || (abort_on_reset && cur_active))) {
+ is_abort = true;
+ }
+ if (cur_internal_active) {
+ do_start = true;
+ }
}
if (is_abort) {