X Tutup
Skip to content

Move advanced toggle state out of export presets#109356

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
KoBeWi:advanced_presets
Oct 23, 2025
Merged

Move advanced toggle state out of export presets#109356
Repiteo merged 1 commit intogodotengine:masterfrom
KoBeWi:advanced_presets

Conversation

@KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Aug 6, 2025

Editor export dialog got an advanced toggle some time ago, but for whatever reason the state of this button is stored inside the preset itself.

This PR moves it to a hidden editor setting, so the state is stored globally for all presets and projects. The method are_advanced_options_enabled() is still there, now it just returns the value of the setting. Though #108169 would be nice to have here .-.

@KoBeWi KoBeWi added this to the 4.x milestone Aug 6, 2025
@KoBeWi KoBeWi requested a review from a team August 6, 2025 13:57
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected. Code looks good to me.

For those wondering, there are a few precedents of editor setting names being in no section and starting with an underscore. For example:

node_shortcuts_toggle->set_pressed(EDITOR_GET("_use_favorites_root_selection"));

@Repiteo Repiteo modified the milestones: 4.x, 4.6 Oct 23, 2025
@Repiteo Repiteo merged commit 79c3bf4 into godotengine:master Oct 23, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 23, 2025

Thanks!

@KoBeWi KoBeWi deleted the advanced_presets branch October 23, 2025 20:47
@CycloneRing
Copy link
Contributor

@Repiteo @KoBeWi this PR introduced an error on engine startup. It is also happening at current code of master branch.

ERROR: Condition "!EditorSettings::get_singleton() || !EditorSettings::get_singleton()->has_setting(p_setting)" is true. Returning: Variant()
   at: _EDITOR_GET (editor\settings\editor_settings.cpp:1517)

I checked the p_setting and it's _export_preset_advanced_mode

This is Godot Engine v4.6.dev.custom_build.ab6c6eece

@KoBeWi
Copy link
Member Author

KoBeWi commented Oct 25, 2025

I don't see any error. Make a reproduction project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup