summaryrefslogtreecommitdiffstats
path: root/modules/fbx/fbx_document.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-27 10:18:00 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-27 10:18:00 +0100
commit3780604d798b08045893533879fa9d7fc02dbf6d (patch)
tree3c0116292200101e2aaa884dd96d910e9a9c1fd4 /modules/fbx/fbx_document.cpp
parent6ed4a279d9dfa9994e8445100a73a7892ec6f32a (diff)
parent652ef966f99de0a915a601b686378f98c1a49b08 (diff)
downloadredot-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.cpp2
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 */