You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge pull request #12107 from RandomShaper/fix-anim-before-first-key
Fix animation before first key
This commit is contained in:
@@ -405,6 +405,10 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float
|
||||
if (a->value_track_get_update_mode(i) == Animation::UPDATE_CONTINUOUS || (p_delta == 0 && a->value_track_get_update_mode(i) == Animation::UPDATE_DISCRETE)) { //delta == 0 means seek
|
||||
|
||||
Variant value = a->value_track_interpolate(i, p_time);
|
||||
|
||||
if (value == Variant())
|
||||
continue;
|
||||
|
||||
//thanks to trigger mode, this should be solved now..
|
||||
/*
|
||||
if (p_delta==0 && value.get_type()==Variant::STRING)
|
||||
|
||||
Reference in New Issue
Block a user