summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_state.h
diff options
context:
space:
mode:
authorabaire <erik.abair@gmail.com>2021-01-28 12:48:12 -0800
committerErik Abair <erik.abair@gmail.com>2021-02-24 08:22:27 -0800
commit61cc1c8624cdf2ef56b807c70f76dd96cc0ebcb7 (patch)
tree6e941c9222b788269c31352afeda108254e918fb /modules/gltf/gltf_state.h
parente5bb89cdd5e92fa6fdeff78aad08bf0cbfbcc692 (diff)
downloadredot-engine-61cc1c8624cdf2ef56b807c70f76dd96cc0ebcb7.tar.gz
Relaxes Node naming constraints in glTF documents to match the Editor.
Diffstat (limited to 'modules/gltf/gltf_state.h')
-rw-r--r--modules/gltf/gltf_state.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gltf/gltf_state.h b/modules/gltf/gltf_state.h
index 4ce5aa9491..9030962b03 100644
--- a/modules/gltf/gltf_state.h
+++ b/modules/gltf/gltf_state.h
@@ -80,6 +80,7 @@ class GLTFState : public Resource {
Vector<Ref<GLTFCamera>> cameras;
Vector<Ref<GLTFLight>> lights;
Set<String> unique_names;
+ Set<String> unique_animation_names;
Vector<Ref<GLTFSkeleton>> skeletons;
Map<GLTFSkeletonIndex, GLTFNodeIndex> skeleton_to_node;
@@ -147,6 +148,9 @@ public:
Array get_unique_names();
void set_unique_names(Array p_unique_names);
+ Array get_unique_animation_names();
+ void set_unique_animation_names(Array p_unique_names);
+
Array get_skeletons();
void set_skeletons(Array p_skeletons);