summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorMarios Staikopoulos <marios@staik.net>2019-11-27 12:19:08 -0800
committerMarios Staikopoulos <marios@staik.net>2019-11-27 12:20:38 -0800
commit4b28fd4f23378d73bcbb5a3bd51472c450e94719 (patch)
tree5e669b0582708963f51ad6c0067b17569b8ce2ae /editor
parent1af9701caacc0739f4817b0bf39f46ff6d90a146 (diff)
Bugfix: Sanitize glTF importer Animation Names and do not set bone_pose
Diffstat (limited to 'editor')
-rw-r--r--editor/import/editor_scene_importer_gltf.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp
index a10d27f7cd..be066e15a5 100644
--- a/editor/import/editor_scene_importer_gltf.cpp
+++ b/editor/import/editor_scene_importer_gltf.cpp
@@ -2143,7 +2143,6 @@ Error EditorSceneImporterGLTF::_create_skeletons(GLTFState &state) {
skeleton->add_bone(node->name);
skeleton->set_bone_rest(bone_index, node->xform);
- skeleton->set_bone_pose(bone_index, node->xform);
if (node->parent >= 0 && state.nodes[node->parent]->skeleton == skel_i) {
const int bone_parent = skeleton->find_bone(state.nodes[node->parent]->name);
@@ -2324,7 +2323,7 @@ Error EditorSceneImporterGLTF::_parse_animations(GLTFState &state) {
Array samplers = d["samplers"];
if (d.has("name")) {
- animation.name = d["name"];
+ animation.name = _sanitize_scene_name(d["name"]);
}
for (int j = 0; j < channels.size(); j++) {