Skip to content

Commit

Permalink
Merge pull request #84390 from TokageItLab/patch-packed-array-anim
Browse files Browse the repository at this point in the history
Add `PackedArray` to the list of enforcing `Discrete` for `AnimationMixer`
  • Loading branch information
YuriSizov committed Nov 3, 2023
2 parents 64705bc + a338849 commit f1426a5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scene/animation/animation_mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,16 @@ bool AnimationMixer::_update_caches() {
case Variant::CALLABLE:
case Variant::SIGNAL:
case Variant::DICTIONARY:
case Variant::ARRAY: {
case Variant::ARRAY:
case Variant::PACKED_BYTE_ARRAY:
case Variant::PACKED_INT32_ARRAY:
case Variant::PACKED_INT64_ARRAY:
case Variant::PACKED_FLOAT32_ARRAY:
case Variant::PACKED_FLOAT64_ARRAY:
case Variant::PACKED_STRING_ARRAY:
case Variant::PACKED_VECTOR2_ARRAY:
case Variant::PACKED_VECTOR3_ARRAY:
case Variant::PACKED_COLOR_ARRAY: {
WARN_PRINT_ONCE_ED("AnimationMixer: '" + String(E) + "', Value Track: '" + String(path) + "' uses a non-numeric type as key value with UpdateMode.UPDATE_CONTINUOUS. This will not be blended correctly, so it is forced to UpdateMode.UPDATE_DISCRETE.");
track_value->is_continuous = false;
break;
Expand Down

0 comments on commit f1426a5

Please sign in to comment.