Make AnimationLibrary use RBMap instead of HashMap

This commit is contained in:
Silc Lizard (Tokage) Renew 2025-11-13 07:22:38 +09:00
parent 8327dfa215
commit e9a6a84468
2 changed files with 7 additions and 6 deletions

View file

@ -30,6 +30,7 @@
#pragma once
#include "core/templates/rb_map.h"
#include "core/variant/typed_array.h"
#include "scene/resources/animation.h"
@ -44,7 +45,7 @@ class AnimationLibrary : public Resource {
void _animation_changed(const StringName &p_name);
friend class AnimationMixer; // For faster access.
HashMap<StringName, Ref<Animation>> animations;
RBMap<StringName, Ref<Animation>, StringName::AlphCompare> animations;
protected:
static void _bind_methods();