summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-07 01:16:17 +0100
committerGitHub <noreply@github.com>2022-01-07 01:16:17 +0100
commit897afb69a7f1130894d4e76857fb52ff5bd37544 (patch)
treeb2f1f9eb343f06ae51bb0b8f0dd3bdcc9378e488 /modules
parente1766da4bd9bf5de2229bac22f1455517d637c4d (diff)
parent9e095bb68bd7e4bbe1ab9eff422d80683bd6656b (diff)
Merge pull request #56578 from KoBeWi/sibling_from_hell
Diffstat (limited to 'modules')
-rw-r--r--modules/gltf/gltf_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 833bcb00e6..0d41ff025e 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -6851,7 +6851,7 @@ Node *GLTFDocument::generate_scene(Ref<GLTFState> state, int32_t p_bake_fps) {
_process_mesh_instances(state, root);
if (state->animations.size()) {
AnimationPlayer *ap = memnew(AnimationPlayer);
- root->add_child(ap);
+ root->add_child(ap, true);
ap->set_owner(root);
for (int i = 0; i < state->animations.size(); i++) {
_import_animation(state, ap, i, p_bake_fps);