Theme: don't store the filepath in the presets

This commit is contained in:
Campbell Barton
2024-04-24 13:37:24 +10:00
parent 1865776767
commit 7fbf09e1e5

View File

@@ -4331,6 +4331,8 @@ static void rna_def_userdef_themes(BlenderRNA *brna)
RNA_def_property_string_sdna(prop, nullptr, "filepath");
RNA_def_property_ui_text(
prop, "File Path", "The path to the preset loaded into this theme (if any)");
/* Don't store in presets. */
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
prop = RNA_def_property(srna, "theme_area", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, nullptr, "active_theme_area");