summaryrefslogtreecommitdiffstats
path: root/modules/gltf/editor
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-10-30 02:36:47 -0700
committerAaron Franke <arnfranke@yahoo.com>2024-11-04 19:28:33 -0800
commit02d8c6eefe1a53d0ea45e1fab1e96a0dff30f8fd (patch)
tree7f58e2ca61963fe60c2799b9082a616c65344c2f /modules/gltf/editor
parent0b7354dfa93dfe5cccfb5e5b75347057bf4c74d1 (diff)
downloadredot-engine-02d8c6eefe1a53d0ea45e1fab1e96a0dff30f8fd.tar.gz
GLTF: Add extract_path and extract_prefix settings
Only used by the Blender importer
Diffstat (limited to 'modules/gltf/editor')
-rw-r--r--modules/gltf/editor/editor_scene_importer_blend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gltf/editor/editor_scene_importer_blend.cpp b/modules/gltf/editor/editor_scene_importer_blend.cpp
index 542e00e560..2db46adef4 100644
--- a/modules/gltf/editor/editor_scene_importer_blend.cpp
+++ b/modules/gltf/editor/editor_scene_importer_blend.cpp
@@ -319,6 +319,8 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
state->set_import_as_skeleton_bones(true);
}
state->set_scene_name(blend_basename);
+ state->set_extract_path(p_path.get_base_dir());
+ state->set_extract_prefix(blend_basename);
err = gltf->append_from_file(sink.get_basename() + ".gltf", state, p_flags, base_dir);
if (err != OK) {
if (r_err) {