Fix part of T64679: Missing dirty preferences tag
authorCampbell Barton <ideasman42@gmail.com>
Tue, 21 May 2019 12:08:10 +0000 (22:08 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 21 May 2019 14:59:43 +0000 (00:59 +1000)
- Editing shortcuts.
- Editing walk mode navigation.
- Adding/removing paths.

source/blender/editors/interface/interface_handlers.c
source/blender/makesrna/RNA_access.h
source/blender/windowmanager/intern/wm_files.c

index 364a03e..eea720f 100644 (file)
@@ -565,7 +565,11 @@ static void ui_but_update_preferences_dirty(uiBut *but)
     }
     else {
       StructRNA *base = RNA_struct_base(but->rnapoin.type);
-      if (ELEM(base, &RNA_AddonPreferences, &RNA_KeyConfigPreferences)) {
+      if (ELEM(base,
+               &RNA_AddonPreferences,
+               &RNA_KeyConfigPreferences,
+               &RNA_KeyMapItem,
+               &RNA_WalkNavigation)) {
         tag = true;
       }
     }
index 4d9ba2c..30abf0f 100644 (file)
@@ -726,6 +726,7 @@ extern StructRNA RNA_View3DOverlay;
 extern StructRNA RNA_View3DShading;
 extern StructRNA RNA_ViewLayer;
 extern StructRNA RNA_VoronoiTexture;
+extern StructRNA RNA_WalkNavigation;
 extern StructRNA RNA_WarpModifier;
 extern StructRNA RNA_WaveModifier;
 extern StructRNA RNA_WeightedNormalModifier;
index 92c37da..c9c14db 100644 (file)
@@ -1652,6 +1652,7 @@ static int wm_userpref_autoexec_add_exec(bContext *UNUSED(C), wmOperator *UNUSED
 {
   bPathCompare *path_cmp = MEM_callocN(sizeof(bPathCompare), "bPathCompare");
   BLI_addtail(&U.autoexec_paths, path_cmp);
+  U.runtime.is_dirty = true;
   return OPERATOR_FINISHED;
 }
 
@@ -1672,6 +1673,7 @@ static int wm_userpref_autoexec_remove_exec(bContext *UNUSED(C), wmOperator *op)
   bPathCompare *path_cmp = BLI_findlink(&U.autoexec_paths, index);
   if (path_cmp) {
     BLI_freelinkN(&U.autoexec_paths, path_cmp);
+    U.runtime.is_dirty = true;
   }
   return OPERATOR_FINISHED;
 }