diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-13 11:51:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-13 11:57:00 +0300 |
commit | d2efdaa26cad2e493c44b7e9305db145863b4fae (patch) | |
tree | 67e09ed7d43a4878c63479d6a2346f89a35db35c /source/blender/makesrna | |
parent | 8cb1de83fc2add3ffd5a9b5748f983aea695a008 (diff) |
Python API: expose preferences.is_dirty
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 3cfb1bbc2c7..5198d89bda8 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -5692,6 +5692,11 @@ void RNA_def_userdef(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "pref_flag", USER_PREF_FLAG_SAVE); RNA_def_property_ui_text(prop, "Save on Exit", "Save modified preferences on exit"); + prop = RNA_def_property(srna, "is_dirty", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "runtime.is_dirty", 0); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_ui_text(prop, "Dirty", "Preferences have changed"); + rna_def_userdef_view(brna); rna_def_userdef_edit(brna); rna_def_userdef_input(brna); |