Use static LocalVector for processed_hashes

This commit is contained in:
Nazarii 2024-08-30 19:36:54 +03:00
parent 3580ced21e
commit 660e28f5cb
2 changed files with 4 additions and 3 deletions

View File

@ -1085,7 +1085,8 @@ void AnimationMixer::_blend_calc_total_weight() {
real_t weight = ai.playback_info.weight;
const real_t *track_weights_ptr = ai.playback_info.track_weights.ptr();
int track_weights_count = ai.playback_info.track_weights.size();
Vector<Animation::TypeHash> processed_hashes;
static LocalVector<Animation::TypeHash> processed_hashes;
processed_hashes.clear();
const Vector<Animation::Track *> tracks = a->get_tracks();
for (const Animation::Track *animation_track : tracks) {
if (!animation_track->enabled) {