You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Merge pull request #92571 from akien-mga/fbx2gltf-rename-path-setting-back
Rename FBX2glTF binary path setting back to 4.2 name
This commit is contained in:
@@ -577,7 +577,7 @@
|
|||||||
The maximum idle uptime (in seconds) of the Blender process.
|
The maximum idle uptime (in seconds) of the Blender process.
|
||||||
This prevents Godot from having to create a new process for each import within the given seconds.
|
This prevents Godot from having to create a new process for each import within the given seconds.
|
||||||
</member>
|
</member>
|
||||||
<member name="filesystem/import/fbx2gltf/fbx2gltf_path" type="String" setter="" getter="">
|
<member name="filesystem/import/fbx/fbx2gltf_path" type="String" setter="" getter="">
|
||||||
The path to the FBX2glTF executable used for converting Autodesk FBX 3D scene files [code].fbx[/code] to glTF 2.0 format during import.
|
The path to the FBX2glTF executable used for converting Autodesk FBX 3D scene files [code].fbx[/code] to glTF 2.0 format during import.
|
||||||
To enable this feature for your specific project, use [member ProjectSettings.filesystem/import/fbx2gltf/enabled].
|
To enable this feature for your specific project, use [member ProjectSettings.filesystem/import/fbx2gltf/enabled].
|
||||||
</member>
|
</member>
|
||||||
|
|||||||
@@ -1003,7 +1003,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="filesystem/import/fbx2gltf/enabled" type="bool" setter="" getter="" default="true">
|
<member name="filesystem/import/fbx2gltf/enabled" type="bool" setter="" getter="" default="true">
|
||||||
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.
|
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.
|
||||||
This requires configuring a path to an FBX2glTF executable in the editor settings at [member EditorSettings.filesystem/import/fbx2gltf/fbx2gltf_path].
|
This requires configuring a path to an FBX2glTF executable in the editor settings at [member EditorSettings.filesystem/import/fbx/fbx2gltf_path].
|
||||||
</member>
|
</member>
|
||||||
<member name="filesystem/import/fbx2gltf/enabled.android" type="bool" setter="" getter="" default="false">
|
<member name="filesystem/import/fbx2gltf/enabled.android" type="bool" setter="" getter="" default="false">
|
||||||
Override for [member filesystem/import/fbx2gltf/enabled] on Android where FBX2glTF can't easily be accessed from Godot.
|
Override for [member filesystem/import/fbx2gltf/enabled] on Android where FBX2glTF can't easily be accessed from Godot.
|
||||||
|
|||||||
@@ -571,7 +571,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/blender/blender_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/blender/blender_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
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)
|
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)
|
||||||
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)
|
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)
|
||||||
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/fbx2gltf/fbx2gltf_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "filesystem/import/fbx/fbx2gltf_path", "", "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
|
||||||
// Tools (denoise)
|
// Tools (denoise)
|
||||||
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_DIR, "filesystem/tools/oidn/oidn_denoise_path", "", "", PROPERTY_USAGE_DEFAULT)
|
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_GLOBAL_DIR, "filesystem/tools/oidn/oidn_denoise_path", "", "", PROPERTY_USAGE_DEFAULT)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ void FBXImporterManager::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FBXImporterManager::show_dialog(bool p_exclusive) {
|
void FBXImporterManager::show_dialog(bool p_exclusive) {
|
||||||
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx2gltf/fbx2gltf_path");
|
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx/fbx2gltf_path");
|
||||||
fbx_path->set_text(fbx2gltf_path);
|
fbx_path->set_text(fbx2gltf_path);
|
||||||
_validate_path(fbx2gltf_path);
|
_validate_path(fbx2gltf_path);
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ void FBXImporterManager::_select_file(const String &p_path) {
|
|||||||
|
|
||||||
void FBXImporterManager::_path_confirmed() {
|
void FBXImporterManager::_path_confirmed() {
|
||||||
String path = fbx_path->get_text();
|
String path = fbx_path->get_text();
|
||||||
EditorSettings::get_singleton()->set("filesystem/import/fbx2gltf/fbx2gltf_path", path);
|
EditorSettings::get_singleton()->set("filesystem/import/fbx/fbx2gltf_path", path);
|
||||||
EditorSettings::get_singleton()->save();
|
EditorSettings::get_singleton()->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Imports Autodesk FBX 3D scenes by way of converting them to glTF 2.0 using the FBX2glTF command line tool.
|
Imports Autodesk FBX 3D scenes by way of converting them to glTF 2.0 using the FBX2glTF command line tool.
|
||||||
The location of the FBX2glTF binary is set via the [member EditorSettings.filesystem/import/fbx2gltf/fbx2gltf_path] editor setting.
|
The location of the FBX2glTF binary is set via the [member EditorSettings.filesystem/import/fbx/fbx2gltf_path] editor setting.
|
||||||
This importer is only used if [member ProjectSettings.filesystem/import/fbx2gltf/enabled] is set to [code]true[/code].
|
This importer is only used if [member ProjectSettings.filesystem/import/fbx2gltf/enabled] is set to [code]true[/code].
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ Node *EditorSceneFormatImporterFBX2GLTF::import_scene(const String &p_path, uint
|
|||||||
|
|
||||||
// Run fbx2gltf.
|
// Run fbx2gltf.
|
||||||
|
|
||||||
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx2gltf/fbx2gltf_path");
|
String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx/fbx2gltf_path");
|
||||||
|
|
||||||
List<String> args;
|
List<String> args;
|
||||||
args.push_back("--pbr-metallic-roughness");
|
args.push_back("--pbr-metallic-roughness");
|
||||||
|
|||||||
Reference in New Issue
Block a user