virtualx-engine/editor
风青山 9fe902b296
Fix errors when re-importing 3D asset files
Some 3D asset files are treated as scenes and may cause some errors when
importing.

When working through different scene tabs, we need to temporarily add
the scene root to the SceneTree to ensure that `editor_selection->add_node()`
can work smoothly. This avoids the error message: `ERROR: Condition
"!p_node->is_inside_tree()" is true.`

This also ensures that no other scenes are accidentally added to the
SceneTree causing the wrong display. When there is an inherited scene
tab open and it is not the current tab, the new root node is accidentally
added as a child node of `scene_root` during replacement.

Instantiate the scene early so caches in SceneState that are cleared
due to loading are rebuilt early. This avoids numerous error messages:
`This operation requires the node cache to have been built.`
2024-05-30 07:46:36 +08:00
..
debugger Merge pull request #91033 from Hilderin/keep_current_bottom_panel_on_play 2024-05-29 22:13:45 +02:00
export Fix export dialog sizing issue on small devices 2024-05-18 11:27:50 -07:00
gui Replace .bind(...).call_deferred() with .call_deferred(...) 2024-05-27 13:29:57 +02:00
icons Update pre-commit hooks configuration to use ruff instead of black 2024-05-21 18:02:29 -05:00
import Replace .bind(...).call_deferred() with .call_deferred(...) 2024-05-27 13:29:57 +02:00
plugins Merge pull request #92495 from matheusmdx/fix-animation-player-error 2024-05-29 22:14:03 +02:00
project_manager Merge pull request #90770 from kitbdev/show-version 2024-05-22 09:26:47 +02:00
themes Update pre-commit hooks configuration to use ruff instead of black 2024-05-21 18:02:29 -05:00
translations i18n: Sync translations with Weblate 2024-05-07 11:52:38 +02:00
action_map_editor.cpp Defer ActionMapEditor::_action_edited signal to prevent tree updates when tree is blocked. 2024-05-29 13:13:20 +03:00
action_map_editor.h Disable Clear All button when not filtering in Editor Settings 2024-05-19 19:29:48 +08:00
animation_bezier_editor.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
animation_bezier_editor.h Merge pull request #88498 from CookieBadger/animation-fix-snapping-multiple 2024-03-24 01:14:23 +01:00
animation_track_editor.cpp Remove duplicate shortcut definitions 2024-05-21 23:28:49 +02:00
animation_track_editor.h Merge pull request #88498 from CookieBadger/animation-fix-snapping-multiple 2024-03-24 01:14:23 +01:00
animation_track_editor_plugins.cpp Reorganize code related to editor theming 2024-01-16 11:57:45 +01:00
animation_track_editor_plugins.h
audio_stream_preview.cpp Fix member names of AudioFrame to match extension 2024-02-13 15:37:09 +01:00
audio_stream_preview.h
code_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
code_editor.h Overhaul multiple caret editing in TextEdit. 2024-04-26 14:26:10 -04:00
connections_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
connections_dialog.h Editor: Display deprecated/experimental messages in tooltips 2024-04-18 14:32:04 +03:00
create_dialog.cpp Improve performance of the 'Create New Node' dialog 2024-05-15 20:50:13 +02:00
create_dialog.h Improve performance of the 'Create New Node' dialog 2024-05-15 20:50:13 +02:00
dependency_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
dependency_editor.h Use mingw-std-threads in MinGW builds 2023-11-18 11:56:05 +01:00
directory_create_dialog.cpp Reorganize code related to editor theming 2024-01-16 11:57:45 +01:00
directory_create_dialog.h
doc_tools.cpp Merge pull request #91557 from AThousandShips/dotnet_doc_fix 2024-05-21 11:22:40 +02:00
doc_tools.h Generate docs from GDExtensions using --gdextension-docs with --doctool 2024-05-07 11:45:17 -05:00
editor_about.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_about.h Improve look of Donors list in Editor's About 2024-02-17 23:43:17 +01:00
editor_asset_installer.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_asset_installer.h Fix asset importer conflicted indeterminate state. 2023-11-17 19:58:18 -05:00
editor_atlas_packer.cpp Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
editor_atlas_packer.h
editor_audio_buses.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_audio_buses.h Organize existing code for editor plugins 2024-04-27 11:59:58 -07:00
editor_autoload_settings.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_autoload_settings.h Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialog 2024-03-05 00:02:09 +01:00
editor_build_profile.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_build_profile.h Editor: Display deprecated/experimental messages in tooltips 2024-04-18 14:32:04 +03:00
editor_builders.py Update pre-commit hooks configuration to use ruff instead of black 2024-05-21 18:02:29 -05:00
editor_command_palette.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_command_palette.h Merge pull request #86727 from KoBeWi/shortcut_revolution 2024-01-09 15:31:00 +01:00
editor_data.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_data.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
editor_dock_manager.cpp Merge pull request #91939 from AThousandShips/pressed_sname 2024-05-14 18:10:05 +02:00
editor_dock_manager.h Allow setting editor dock tabs to icon only 2024-04-30 09:34:14 +08:00
editor_feature_profile.cpp Editor Feature Profile: Only rebuild selected TreeItem and all children when a property is edited 2024-05-20 11:32:41 +02:00
editor_feature_profile.h Editor Feature Profile: Only rebuild selected TreeItem and all children when a property is edited 2024-05-20 11:32:41 +02:00
editor_file_system.cpp Skip unnecessary updates to scene groups and scripts 2024-05-15 16:48:01 +02:00
editor_file_system.h Skip unnecessary updates to scene groups and scripts 2024-05-15 16:48:01 +02:00
editor_folding.cpp
editor_folding.h
editor_help.cpp Merge pull request #92457 from YeldhamDev/extreme_corner_case_but_still 2024-05-29 11:19:57 +02:00
editor_help.h Editor: Fix categories and tooltips in TileSet editor 2024-05-14 10:23:14 +03:00
editor_help_search.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_help_search.h Organize existing code for editor plugins 2024-04-27 11:59:58 -07:00
editor_inspector.compat.inc Display custom data name instead of indices in TileData inspector 2024-05-25 17:21:31 +02:00
editor_inspector.cpp Set doc_name even when categories are hidden in the inspector 2024-05-28 15:44:22 -03:00
editor_inspector.h Display custom data name instead of indices in TileData inspector 2024-05-25 17:21:31 +02:00
editor_interface.cpp Optimise Object's get_argument_options 2024-02-29 18:00:54 +01:00
editor_interface.h Optimise Object's get_argument_options 2024-02-29 18:00:54 +01:00
editor_layouts_dialog.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_layouts_dialog.h
editor_locale_dialog.cpp Fix missing i18n for some editor strings 2024-04-03 16:42:28 +08:00
editor_locale_dialog.h
editor_log.cpp Replace .bind(...).call_deferred() with .call_deferred(...) 2024-05-27 13:29:57 +02:00
editor_log.h Add line limit to Editor Output Log 2024-05-02 13:28:59 +01:00
editor_native_shader_source_visualizer.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_native_shader_source_visualizer.h Improve the editor native shader source visualizer 2024-03-22 00:17:32 +01:00
editor_node.cpp Fix errors when re-importing 3D asset files 2024-05-30 07:46:36 +08:00
editor_node.h Merge pull request #91033 from Hilderin/keep_current_bottom_panel_on_play 2024-05-29 22:13:45 +02:00
editor_paths.cpp Automatically generate the Android debug keystore 2024-04-12 23:53:28 -07:00
editor_paths.h Automatically generate the Android debug keystore 2024-04-12 23:53:28 -07:00
editor_properties.cpp Remove unused base_hint from EditorPropertyNodePath 2024-05-29 13:18:19 +02:00
editor_properties.h Remove unused base_hint from EditorPropertyNodePath 2024-05-29 13:18:19 +02:00
editor_properties_array_dict.cpp Merge pull request #92225 from ajreckof/fix-multiline-array 2024-05-29 23:11:57 +02:00
editor_properties_array_dict.h Add colored margin in Inspector for arrays and dictionaries. 2024-05-03 10:56:23 +02:00
editor_properties_vector.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_properties_vector.h
editor_property_name_processor.cpp Replace find with contains/has where applicable 2024-05-08 12:37:42 +02:00
editor_property_name_processor.h Add context support for editor property name i18n 2024-03-31 18:40:14 +08:00
editor_quick_open.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_quick_open.h Added tokenized search support to Quick Open dialog and FileSystem filter. 2024-04-17 21:12:55 -05:00
editor_resource_picker.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_resource_picker.h Merge pull request #84443 from KoBeWi/cookies_for_EditorResourcePicker 2024-04-30 17:02:58 +02:00
editor_resource_preview.cpp Add a way to invalidate preview cache 2024-04-26 16:57:45 +02:00
editor_resource_preview.h Add a way to invalidate preview cache 2024-04-26 16:57:45 +02:00
editor_run.cpp Allow to set custom feature tags for testing 2024-02-13 17:38:45 +01:00
editor_run.h Add a dialog to customize run instances 2024-02-05 19:07:31 +01:00
editor_run_native.cpp Disable remote debug button when there are no runnable presets 2024-05-17 00:15:13 +02:00
editor_run_native.h Display a warning if device CPU architecture is not active in the export preset. 2024-02-23 01:37:32 +01:00
editor_script.cpp Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable 2023-12-14 13:22:40 -06:00
editor_script.h
editor_sectioned_inspector.cpp [Core] Add case-insensitive String::containsn 2024-05-08 12:48:01 +02:00
editor_sectioned_inspector.h
editor_settings.cpp Merge pull request #91033 from Hilderin/keep_current_bottom_panel_on_play 2024-05-29 22:13:45 +02:00
editor_settings.h Use minor version in EditorSettings file name 2024-04-19 00:13:06 +02:00
editor_settings_dialog.cpp Disable Clear All button when not filtering in Editor Settings 2024-05-19 19:29:48 +08:00
editor_settings_dialog.h Disable Clear All button when not filtering in Editor Settings 2024-05-19 19:29:48 +08:00
editor_string_names.cpp
editor_string_names.h
editor_translation.cpp Improve string extraction of ETR POT file 2024-05-07 22:12:40 -03:00
editor_translation.h Improve string extraction of ETR POT file 2024-05-07 22:12:40 -03:00
editor_translation_parser.cpp Reduce and prevent unnecessary random-access to List 2024-05-04 16:08:55 +02:00
editor_translation_parser.h
editor_undo_redo_manager.cpp Check if history exists before discarding 2024-02-05 17:42:37 +01:00
editor_undo_redo_manager.h Check if history exists before discarding 2024-02-05 17:42:37 +01:00
editor_vcs_interface.cpp Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
editor_vcs_interface.h Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
engine_update_label.cpp Change update checker version source 2024-05-02 15:32:24 +02:00
engine_update_label.h Hide update status label when no action is required 2024-04-22 21:36:22 +02:00
event_listener_line_edit.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
event_listener_line_edit.h
fbx_importer_manager.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
fbx_importer_manager.h
filesystem_dock.cpp Merge pull request #90570 from timothyqiu/at-last 2024-05-29 22:13:40 +02:00
filesystem_dock.h Fix Tree and FileSystemList edit popup double events and ESC behavior. 2024-05-17 10:03:52 +03:00
find_in_files.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
find_in_files.h Hide Search Results by default. Show it on first search and push it at the end. Add a close button to hide it back. Also switch to Script Editor if a searched line is clicked. 2024-03-16 20:42:05 +01:00
group_settings_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
group_settings_editor.h Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialog 2024-03-05 00:02:09 +01:00
groups_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
groups_editor.h Use ObjectID to track cached scene groups. 2024-01-09 11:14:38 +01:00
history_dock.cpp Save scene and global checkbox options of History window, fixes #88432 2024-02-29 22:51:18 +00:00
history_dock.h Save scene and global checkbox options of History window, fixes #88432 2024-02-29 22:51:18 +00:00
import_defaults_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
import_defaults_editor.h
import_dock.cpp fbx: change import option defaults 2024-05-21 07:58:36 -07:00
import_dock.h Fix errors/crashes related to skipped imports 2024-04-25 10:33:59 -04:00
input_event_configuration_dialog.cpp Merge pull request #83248 from pkowal1982/event_configuration 2024-05-29 11:19:35 +02:00
input_event_configuration_dialog.h (Un)Fold event categories by double click 2024-05-11 20:38:46 +02:00
inspector_dock.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
inspector_dock.h Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
localization_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
localization_editor.h Add option to add built-in strings in the POT generation 2024-02-28 11:34:26 -03:00
multi_node_edit.cpp Fix going forward backward in editor selection history. 2024-04-14 17:21:11 +02:00
multi_node_edit.h [Core] Add LocalVector::has for convenience 2024-05-06 18:03:37 +02:00
node_dock.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
node_dock.h Hide Node dock successfully on undo/redo and deletion 2023-12-12 10:26:05 +01:00
pot_generator.cpp Improve string extraction of ETR POT file 2024-05-07 22:12:40 -03:00
pot_generator.h
progress_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
progress_dialog.h Update deferred calls to use Callables 2024-01-09 16:11:47 +01:00
project_converter_3_to_4.cpp Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
project_converter_3_to_4.h Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
project_manager.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
project_manager.h Fix folder scan replacing project list 2024-04-18 13:03:21 +02:00
project_settings_editor.cpp Increase width of project settings window 2024-05-22 08:41:39 +02:00
project_settings_editor.h Organize existing code for editor plugins 2024-04-27 11:59:58 -07:00
property_selector.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
property_selector.h
register_editor_types.cpp Allow configuring the script filename casing rule 2024-03-05 09:43:29 +01:00
register_editor_types.h
register_exporters.h
rename_dialog.cpp Don't traslate preview in node batch rename dialog 2024-05-21 15:55:06 +08:00
rename_dialog.h Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
renames_map_3_to_4.cpp Add ufbx for FBX importing 2024-02-23 22:33:04 +01:00
renames_map_3_to_4.h
reparent_dialog.cpp Improve SceneTreeEditor usability 2024-03-31 21:35:10 +02:00
reparent_dialog.h
run_instances_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
run_instances_dialog.h Allow to set custom feature tags for testing 2024-02-13 17:38:45 +01:00
scene_create_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
scene_create_dialog.h
scene_tree_dock.cpp Fix error when dropping image onto the scene dock 2024-05-28 18:57:04 +08:00
scene_tree_dock.h Create AudioStreamPlayer when dropping AudioStream 2024-05-19 20:26:04 +08:00
script_create_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
script_create_dialog.h Allow configuring the script filename casing rule 2024-03-05 09:43:29 +01:00
SCsub Update pre-commit hooks configuration to use ruff instead of black 2024-05-21 18:02:29 -05:00
shader_create_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
shader_create_dialog.h Fix theme application in various editor dialogs 2023-12-04 13:18:48 +01:00
shader_globals_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
shader_globals_editor.h Organize existing code for editor plugins 2024-04-27 11:59:58 -07:00
surface_upgrade_tool.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
surface_upgrade_tool.h Rework the surface upgrade tool to inform users without blocking 2023-11-22 19:03:14 +01:00
template_builders.py SCons: Remove run_in_subprocess dependency 2024-03-11 13:20:09 -05:00
window_wrapper.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
window_wrapper.h Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00