Godot Engine – Multi-platform 2D and 3D game engine
Move last setting out of `interface/editors`
kite2b8f96ea0ef
diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xmlindex d673469ab90..c3b86d9ca02 100644--- a/doc/classes/EditorSettings.xml+++ b/doc/classes/EditorSettings.xml@@ -320,6 +320,9 @@<member name="docks/scene_tree/center_node_on_reparent" type="bool" setter="" getter="">If [code]true[/code], new node created when reparenting node(s) will be positioned at the average position of the selected node(s).</member>+ <member name="docks/scene_tree/derive_script_globals_by_name" type="bool" setter="" getter="">+ If [code]true[/code], when extending a script, the global class name of the script is inserted in the script creation dialog, if it exists. If [code]false[/code], the script's file path is always inserted.+ </member><member name="docks/scene_tree/hide_filtered_out_parents" type="bool" setter="" getter="">If [code]true[/code], the scene tree dock will only show nodes that match the filter, without showing parents that don't. This settings can also be changed in the Scene dock's top menu.</member>@@ -1133,9 +1136,6 @@When the editor window is unfocused, the amount of sleeping between frames when the low-processor usage mode is enabled (in microseconds). Higher values will result in lower CPU/GPU usage, which can improve battery life on laptops (in addition to improving the running project's performance if the editor has to redraw continuously). However, higher values will result in a less responsive editor. The default value is set to limit the editor to 10 FPS when the editor window is unfocused. See also [member interface/editor/timers/low_processor_mode_sleep_usec].[b]Note:[/b] This setting is ignored if [member interface/editor/display/update_continuously] is [code]true[/code], as enabling that setting disables low-processor mode.</member>- <member name="interface/editors/derive_script_globals_by_name" type="bool" setter="" getter="">- If [code]true[/code], when extending a script, the global class name of the script is inserted in the script creation dialog, if it exists. If [code]false[/code], the script's file path is always inserted.- </member><member name="interface/inspector/auto_unfold_foreign_scenes" type="bool" setter="" getter="">If [code]true[/code], automatically unfolds Inspector property groups containing modified values when opening a scene for the first time. Only affects scenes without saved folding preferences and only unfolds groups with properties that have been changed from their default values.[b]Note:[/b] This setting only works in specific scenarios: when opening a scene brought in from another project, or when opening a new scene that already has modified properties (e.g., from version control). Duplicated scenes are not considered foreign, so this setting will not affect them.diff --git a/editor/docks/scene_tree_dock.cpp b/editor/docks/scene_tree_dock.cppindex 307f3430208..64a2d45409e 100644--- a/editor/docks/scene_tree_dock.cpp+++ b/editor/docks/scene_tree_dock.cpp@@ -4351,7 +4351,7 @@ void SceneTreeDock::attach_script_to_selected(bool p_extend) {ScriptLanguage *l = ScriptServer::get_language(i);if (l->get_type() == existing->get_class()) {String name = l->get_global_class_name(existing->get_path());- if (ScriptServer::is_global_class(name) && EDITOR_GET("interface/editors/derive_script_globals_by_name").operator bool()) {+ if (ScriptServer::is_global_class(name) && EDITOR_GET("docks/scene_tree/derive_script_globals_by_name").operator bool()) {inherits = name;} else if (l->can_inherit_from_file()) {inherits = "\"" + existing->get_path() + "\"";diff --git a/editor/settings/editor_settings.cpp b/editor/settings/editor_settings.cppindex 8e155c16b92..fc65b70b846 100644--- a/editor/settings/editor_settings.cpp+++ b/editor/settings/editor_settings.cpp@@ -581,7 +581,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/editor/appearance/show_renderer_selector", false, "")- _initial_set("interface/editors/derive_script_globals_by_name", true);+ _initial_set("docks/scene_tree/derive_script_globals_by_name", true);_initial_set("docks/scene_tree/ask_before_revoking_unique_name", true);// Inspector@@ -1339,6 +1339,7 @@ void EditorSettings::_handle_setting_compatibility() {_rename_setting("interface/editor/update_continuously", "interface/editor/display/update_continuously");_rename_setting("interface/editor/collapse_main_menu", "interface/editor/appearance/collapse_main_menu");_rename_setting("asset_library/use_threads", "asset_store/use_threads");+ _rename_setting("interface/editors/derive_script_globals_by_name", "docks/scene_tree/derive_script_globals_by_name");// Handle renamed shortcuts._rename_shortcut("editor/editor_assetlib", "editor/editor_asset_store");