diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:18:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-27 10:18:00 +0100 |
commit | 3780604d798b08045893533879fa9d7fc02dbf6d (patch) | |
tree | 3c0116292200101e2aaa884dd96d910e9a9c1fd4 /modules/fbx/fbx_document.cpp | |
parent | 6ed4a279d9dfa9994e8445100a73a7892ec6f32a (diff) | |
parent | 652ef966f99de0a915a601b686378f98c1a49b08 (diff) | |
download | redot-engine-3780604d798b08045893533879fa9d7fc02dbf6d.tar.gz |
Merge pull request #88819 from lyuma/import_nodes_as_skeleton_bones
Add new scene import option to import as Skeleton
Diffstat (limited to 'modules/fbx/fbx_document.cpp')
-rw-r--r-- | modules/fbx/fbx_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index 2f8fd79be5..367117edcb 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -2086,7 +2086,7 @@ Error FBXDocument::_parse_fbx_state(Ref<FBXState> p_state, const String &p_searc ERR_FAIL_COND_V(err != OK, ERR_PARSE_ERROR); /* DETERMINE SKELETONS */ - err = SkinTool::_determine_skeletons(p_state->skins, p_state->nodes, p_state->skeletons); + err = SkinTool::_determine_skeletons(p_state->skins, p_state->nodes, p_state->skeletons, p_state->get_import_as_skeleton_bones() ? p_state->root_nodes : Vector<GLTFNodeIndex>()); ERR_FAIL_COND_V(err != OK, ERR_PARSE_ERROR); /* CREATE SKELETONS */ |