godot/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
animation_track_editor_plugins.cpp
animation_track_editor_plugins.h
animation_track_editor.cpp Remove duplicate shortcut definitions 2024-05-21 23:28:49 +02:00
animation_track_editor.h
audio_stream_preview.cpp
audio_stream_preview.h
code_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
code_editor.h
connections_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
connections_dialog.h
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
directory_create_dialog.cpp
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
editor_asset_installer.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_asset_installer.h
editor_atlas_packer.cpp
editor_atlas_packer.h
editor_audio_buses.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_audio_buses.h
editor_autoload_settings.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_autoload_settings.h
editor_build_profile.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_build_profile.h
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
editor_data.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_data.h
editor_dock_manager.cpp Merge pull request #91939 from AThousandShips/pressed_sname 2024-05-14 18:10:05 +02:00
editor_dock_manager.h
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_search.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_help_search.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_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
editor_interface.h
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
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
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
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
editor_paths.h
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
editor_properties_vector.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_properties_vector.h
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_property_name_processor.cpp Replace find with contains/has where applicable 2024-05-08 12:37:42 +02:00
editor_property_name_processor.h
editor_quick_open.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
editor_quick_open.h
editor_resource_picker.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
editor_resource_picker.h
editor_resource_preview.cpp
editor_resource_preview.h
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
editor_run.cpp
editor_run.h
editor_script.cpp
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_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_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
editor_string_names.cpp
editor_string_names.h
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_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_undo_redo_manager.cpp
editor_undo_redo_manager.h
editor_vcs_interface.cpp
editor_vcs_interface.h
engine_update_label.cpp
engine_update_label.h
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
group_settings_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
group_settings_editor.h
groups_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
groups_editor.h
history_dock.cpp
history_dock.h
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
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
localization_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
localization_editor.h
multi_node_edit.cpp
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
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
project_converter_3_to_4.cpp
project_converter_3_to_4.h
project_manager.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
project_manager.h
project_settings_editor.cpp Increase width of project settings window 2024-05-22 08:41:39 +02:00
project_settings_editor.h
property_selector.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
property_selector.h
register_editor_types.cpp
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
renames_map_3_to_4.cpp
renames_map_3_to_4.h
reparent_dialog.cpp
reparent_dialog.h
run_instances_dialog.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
run_instances_dialog.h
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
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
shader_globals_editor.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
shader_globals_editor.h
surface_upgrade_tool.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
surface_upgrade_tool.h
template_builders.py
window_wrapper.cpp [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
window_wrapper.h