Skip to content

Commit a4f2ea9

Browse files
authored
Merge pull request #92571 from akien-mga/fbx2gltf-rename-path-setting-back
Rename FBX2glTF binary path setting back to 4.2 name
2 parents 6b38be6 + 7728839 commit a4f2ea9

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

doc/classes/EditorSettings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@
577577
The maximum idle uptime (in seconds) of the Blender process.
578578
This prevents Godot from having to create a new process for each import within the given seconds.
579579
</member>
580-
<member name="filesystem/import/fbx2gltf/fbx2gltf_path" type="String" setter="" getter="">
580+
<member name="filesystem/import/fbx/fbx2gltf_path" type="String" setter="" getter="">
581581
The path to the FBX2glTF executable used for converting Autodesk FBX 3D scene files [code].fbx[/code] to glTF 2.0 format during import.
582582
To enable this feature for your specific project, use [member ProjectSettings.filesystem/import/fbx2gltf/enabled].
583583
</member>

doc/classes/ProjectSettings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@
10031003
</member>
10041004
<member name="filesystem/import/fbx2gltf/enabled" type="bool" setter="" getter="" default="true">
10051005
If [code]true[/code], Autodesk FBX 3D scene files with the [code].fbx[/code] extension will be imported by converting them to glTF 2.0.
1006-
This requires configuring a path to an FBX2glTF executable in the editor settings at [member EditorSettings.filesystem/import/fbx2gltf/fbx2gltf_path].
1006+
This requires configuring a path to an FBX2glTF executable in the editor settings at [member EditorSettings.filesystem/import/fbx/fbx2gltf_path].
10071007
</member>
10081008
<member name="filesystem/import/fbx2gltf/enabled.android" type="bool" setter="" getter="" default="false">
10091009
Override for [member filesystem/import/fbx2gltf/enabled] on Android where FBX2glTF can't easily be accessed from Godot.

editor/editor_settings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
571571
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/blender/blender_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
572572
EDITOR_SETTING_USAGE(Variant::INT, PROPERTY_HINT_RANGE, "filesystem/import/blender/rpc_port", 6011, "0,65535,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
573573
EDITOR_SETTING_USAGE(Variant::FLOAT, PROPERTY_HINT_RANGE, "filesystem/import/blender/rpc_server_uptime", 5, "0,300,1,or_greater,suffix:s", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
574-
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/fbx2gltf/fbx2gltf_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
574+
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/fbx/fbx2gltf_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
575575

576576
// Tools (denoise)
577577
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_DIR, "filesystem/tools/oidn/oidn_denoise_path", "", "", PROPERTY_USAGE_DEFAULT)

editor/fbx_importer_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void FBXImporterManager::_notification(int p_what) {
5050
}
5151

5252
void FBXImporterManager::show_dialog(bool p_exclusive) {
53-
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx2gltf/fbx2gltf_path");
53+
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx/fbx2gltf_path");
5454
fbx_path->set_text(fbx2gltf_path);
5555
_validate_path(fbx2gltf_path);
5656

@@ -109,7 +109,7 @@ void FBXImporterManager::_select_file(const String &p_path) {
109109

110110
void FBXImporterManager::_path_confirmed() {
111111
String path = fbx_path->get_text();
112-
EditorSettings::get_singleton()->set("filesystem/import/fbx2gltf/fbx2gltf_path", path);
112+
EditorSettings::get_singleton()->set("filesystem/import/fbx/fbx2gltf_path", path);
113113
EditorSettings::get_singleton()->save();
114114
}
115115

modules/fbx/doc_classes/EditorSceneFormatImporterFBX2GLTF.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</brief_description>
66
<description>
77
Imports Autodesk FBX 3D scenes by way of converting them to glTF 2.0 using the FBX2glTF command line tool.
8-
The location of the FBX2glTF binary is set via the [member EditorSettings.filesystem/import/fbx2gltf/fbx2gltf_path] editor setting.
8+
The location of the FBX2glTF binary is set via the [member EditorSettings.filesystem/import/fbx/fbx2gltf_path] editor setting.
99
This importer is only used if [member ProjectSettings.filesystem/import/fbx2gltf/enabled] is set to [code]true[/code].
1010
</description>
1111
<tutorials>

modules/fbx/editor/editor_scene_importer_fbx2gltf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Node *EditorSceneFormatImporterFBX2GLTF::import_scene(const String &p_path, uint
7373

7474
// Run fbx2gltf.
7575

76-
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx2gltf/fbx2gltf_path");
76+
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx/fbx2gltf_path");
7777

7878
List<String> args;
7979
args.push_back("--pbr-metallic-roughness");

0 commit comments

Comments
 (0)