You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Add a dialog for customizing FBX import
* If FBX files are found, a dialog will pop up asking to configure FBX2glTF. * Dialog can also be accessed by going Editor -> Configure FBX Import. * The dialog also shows a link to click to download the converter, which should contain instructions.
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
#include "editor/export/editor_export.h"
|
||||
#include "editor/export/export_template_manager.h"
|
||||
#include "editor/export/project_export.h"
|
||||
#include "editor/fbx_importer_manager.h"
|
||||
#include "editor/filesystem_dock.h"
|
||||
#include "editor/history_dock.h"
|
||||
#include "editor/import/audio_stream_import_settings.h"
|
||||
@@ -2981,7 +2982,11 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
||||
} break;
|
||||
case SETTINGS_MANAGE_EXPORT_TEMPLATES: {
|
||||
export_template_manager->popup_manager();
|
||||
|
||||
} break;
|
||||
case SETTINGS_MANAGE_FBX_IMPORTER: {
|
||||
#if !defined(ANDROID_ENABLED) && !defined(WEB_ENABLED)
|
||||
fbx_importer_manager->show_dialog();
|
||||
#endif
|
||||
} break;
|
||||
case SETTINGS_INSTALL_ANDROID_BUILD_TEMPLATE: {
|
||||
custom_build_manage_templates->hide();
|
||||
@@ -6624,6 +6629,11 @@ EditorNode::EditorNode() {
|
||||
gui_base->add_child(about);
|
||||
feature_profile_manager->connect("current_feature_profile_changed", callable_mp(this, &EditorNode::_feature_profile_changed));
|
||||
|
||||
#if !defined(ANDROID_ENABLED) && !defined(WEB_ENABLED)
|
||||
fbx_importer_manager = memnew(FBXImporterManager);
|
||||
gui_base->add_child(fbx_importer_manager);
|
||||
#endif
|
||||
|
||||
warning = memnew(AcceptDialog);
|
||||
warning->add_button(TTR("Copy Text"), true, "copy");
|
||||
gui_base->add_child(warning);
|
||||
@@ -6796,6 +6806,9 @@ EditorNode::EditorNode() {
|
||||
#ifndef ANDROID_ENABLED
|
||||
settings_menu->add_item(TTR("Manage Export Templates..."), SETTINGS_MANAGE_EXPORT_TEMPLATES);
|
||||
#endif
|
||||
#if !defined(ANDROID_ENABLED) && !defined(WEB_ENABLED)
|
||||
settings_menu->add_item(TTR("Configure FBX Importer..."), SETTINGS_MANAGE_FBX_IMPORTER);
|
||||
#endif
|
||||
|
||||
help_menu = memnew(PopupMenu);
|
||||
help_menu->set_name(TTR("Help"));
|
||||
|
||||
Reference in New Issue
Block a user