summaryrefslogtreecommitdiff
path: root/modules/gltf/gltf_state.h
diff options
context:
space:
mode:
authorHakim <hakim.rouatbi@gmail.com>2022-08-09 19:39:58 +0200
committerHakim <hakim.rouatbi@gmail.com>2022-08-10 11:17:29 +0200
commit805ffdfbf6841ac19c6fdbf3425a6ff15115bed7 (patch)
tree8d0cf1af26b4316a1a9fe9618a1b53b0cfe9ee90 /modules/gltf/gltf_state.h
parent94a8065ae4ae19b814bc9b02d41358d55d3cf813 (diff)
Prevent AnimationPlayer from being added on GLTF import if the option is unchecked. Fixes #63954
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 d2a4948f06..c08132f874 100644
--- a/modules/gltf/gltf_state.h
+++ b/modules/gltf/gltf_state.h
@@ -61,6 +61,7 @@ class GLTFState : public Resource {
bool use_named_skin_binds = false;
bool use_khr_texture_transform = false;
bool discard_meshes_and_materials = false;
+ bool create_animations = true;
Vector<Ref<GLTFNode>> nodes;
Vector<Vector<uint8_t>> buffers;
@@ -168,6 +169,9 @@ public:
Dictionary get_skeleton_to_node();
void set_skeleton_to_node(Dictionary p_skeleton_to_node);
+ bool get_create_animations();
+ void set_create_animations(bool p_create_animations);
+
Array get_animations();
void set_animations(Array p_animations);