diff options
author | Lyuma <xn.lyuma@gmail.com> | 2023-02-20 16:32:27 -0800 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2023-02-20 16:32:27 -0800 |
commit | 1c090d37b495b0bce562c530868db0eabe8710aa (patch) | |
tree | da6bad71c52ee356b4d390e5d1ee66e8457cfcca /modules/gltf | |
parent | 9c960a8c2494eb826a557a7ffc96dd4547f9d31e (diff) |
fbx: Set base_dir correctly in append_from_scene
Diffstat (limited to 'modules/gltf')
-rw-r--r-- | modules/gltf/editor/editor_scene_importer_fbx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/editor/editor_scene_importer_fbx.cpp b/modules/gltf/editor/editor_scene_importer_fbx.cpp index f8f458fcc7..5e7a8f4e69 100644 --- a/modules/gltf/editor/editor_scene_importer_fbx.cpp +++ b/modules/gltf/editor/editor_scene_importer_fbx.cpp @@ -93,7 +93,7 @@ Node *EditorSceneFormatImporterFBX::import_scene(const String &p_path, uint32_t Ref<GLTFState> state; state.instantiate(); print_verbose(vformat("glTF path: %s", sink)); - Error err = gltf->append_from_file(sink, state, p_flags); + Error err = gltf->append_from_file(sink, state, p_flags, p_path.get_base_dir()); if (err != OK) { if (r_err) { *r_err = FAILED; |