summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLyuma <xn.lyuma@gmail.com>2024-05-20 02:56:57 -0700
committerLyuma <xn.lyuma@gmail.com>2024-05-21 07:58:36 -0700
commitc433754d3483515aab7a4201f12f83fcbd1050b3 (patch)
tree1ccbd48f11d784d99c3338c32ea9871f078bd9e9 /modules
parentbd2300d77a6008167043f23fd91bcc562cde0a19 (diff)
downloadredot-engine-c433754d3483515aab7a4201f12f83fcbd1050b3.tar.gz
fbx: change import option defaults
ufbx has special logic to handle animation/trimming, and most users expect trimming to be on. For existing projects, we should upgrade files0 to FBX2glTF to preserve node compatibility.
Diffstat (limited to 'modules')
-rw-r--r--modules/fbx/editor/editor_scene_importer_ufbx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fbx/editor/editor_scene_importer_ufbx.cpp b/modules/fbx/editor/editor_scene_importer_ufbx.cpp
index 3cc919fae2..e0f60fe998 100644
--- a/modules/fbx/editor/editor_scene_importer_ufbx.cpp
+++ b/modules/fbx/editor/editor_scene_importer_ufbx.cpp
@@ -111,7 +111,7 @@ void EditorSceneFormatImporterUFBX::get_import_options(const String &p_path,
void EditorSceneFormatImporterUFBX::handle_compatibility_options(HashMap<StringName, Variant> &p_import_params) const {
if (!p_import_params.has("fbx/importer")) {
- p_import_params["fbx/importer"] = EditorSceneFormatImporterUFBX::FBX_IMPORTER_UFBX;
+ p_import_params["fbx/importer"] = EditorSceneFormatImporterUFBX::FBX_IMPORTER_FBX2GLTF;
}
}