summaryrefslogtreecommitdiff
path: root/modules/gltf/editor
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/editor
parent94a8065ae4ae19b814bc9b02d41358d55d3cf813 (diff)
Prevent AnimationPlayer from being added on GLTF import if the option is unchecked. Fixes #63954
Diffstat (limited to 'modules/gltf/editor')
-rw-r--r--modules/gltf/editor/editor_scene_importer_gltf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gltf/editor/editor_scene_importer_gltf.cpp b/modules/gltf/editor/editor_scene_importer_gltf.cpp
index 3fadec5167..161808aade 100644
--- a/modules/gltf/editor/editor_scene_importer_gltf.cpp
+++ b/modules/gltf/editor/editor_scene_importer_gltf.cpp
@@ -60,6 +60,9 @@ Node *EditorSceneFormatImporterGLTF::import_scene(const String &p_path, uint32_t
}
return nullptr;
}
+ if (p_options.has("animation/import")) {
+ state->set_create_animations(bool(p_options["animation/import"]));
+ }
return doc->generate_scene(state, p_bake_fps);
}