diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-10 08:57:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-10 11:27:02 +0300 |
commit | b95b6b796695a8b82cda9898561de9e89021596f (patch) | |
tree | 0f23158ccc870ac810bd33796809f321b15b6e74 /source/blender/makesrna | |
parent | b607d1629251dcf1f1964cfddbc9d121863d5ca1 (diff) |
Preferences: add is_dirty member
Tag preferences as dirty when changed (prepare for adding auto-save).
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index c36c10fd4b3..ccfeb8441bd 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -184,8 +184,11 @@ static void rna_userdef_version_get(PointerRNA *ptr, int *value) value[2] = userdef->subversionfile; } -static void rna_userdef_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) +static void rna_userdef_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) { + UserDef *userdef = (UserDef *)ptr->data; + userdef->runtime.is_dirty = true; + WM_main_add_notifier(NC_WINDOW, NULL); } |