Merge pull request #119001 from YeldhamDev/silence_animation

Make error about keyless animation tracks a verbose warning instead
This commit is contained in:
Thaddeus Crews
2026-04-29 12:28:52 -05:00
+4 -1
View File
@@ -732,7 +732,10 @@ bool AnimationMixer::_update_caches() {
case Animation::TYPE_VALUE: {
// If a value track without a key is cached first, the initial value cannot be determined.
// It is a corner case, but which may cause problems with blending.
ERR_CONTINUE_MSG(anim->track_get_key_count(i) == 0, mixer_name + ": '" + String(E) + "', Value Track: '" + String(path) + "' must have at least one key to cache for blending.");
if (anim->track_get_key_count(i) == 0) {
WARN_VERBOSE(mixer_name + ": '" + String(E) + "', Value Track: '" + String(path) + "' must have at least one key to cache for blending.");
continue;
}
TrackCacheValue *track_value = memnew(TrackCacheValue);