Merge pull request #119001 from YeldhamDev/silence_animation
Make error about keyless animation tracks a verbose warning instead
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user