summaryrefslogtreecommitdiff
path: root/modules/gltf
diff options
context:
space:
mode:
authorSaracenOne <SaracenOne@gmail.com>2023-01-23 07:40:06 +0000
committerSaracenOne <SaracenOne@gmail.com>2023-01-23 07:40:06 +0000
commit03523572b96f7dd70e0e0c28499f2b33d854e86e (patch)
tree1691bf264ce939f6be2c8803e72900083acfd8c8 /modules/gltf
parenteaf306e0b15e4283883f06bf903b05711a4dbfe8 (diff)
Adds missing method call to set blendshape tracks as 'imported' when importing from a GLTF.
Diffstat (limited to 'modules/gltf')
-rw-r--r--modules/gltf/gltf_document.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 5634c51c61..b243ba933d 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -6072,6 +6072,7 @@ void GLTFDocument::_import_animation(Ref<GLTFState> p_state, AnimationPlayer *p_
const int track_idx = animation->get_track_count();
animation->add_track(Animation::TYPE_BLEND_SHAPE);
animation->track_set_path(track_idx, blend_path);
+ animation->track_set_imported(track_idx, true); //helps merging later
// Only LINEAR and STEP (NEAREST) can be supported out of the box by Godot's Animation,
// the other modes have to be baked.