Prevent AnimationPlayer from being added on GLTF import if the option is unchecked. Fixes #63954
This commit is contained in:
parent
94a8065ae4
commit
805ffdfbf6
5 changed files with 21 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue