mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make AnimationLibrary use RBMap instead of HashMap
This commit is contained in:
parent
8327dfa215
commit
e9a6a84468
2 changed files with 7 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue