[Bf-blender-cvs] [7f75017635f] master: Cleanup: make 'deselect_all' properties PROP_SKIP_SAVE.

Bastien Montagne noreply at git.blender.org
Tue Apr 30 11:34:52 CEST 2019


Commit: 7f75017635fc4b082c069390364ad92651edac4c
Author: Bastien Montagne
Date:   Mon Apr 29 17:01:05 2019 +0200
Branches: master
https://developer.blender.org/rB7f75017635fc4b082c069390364ad92651edac4c

Cleanup: make 'deselect_all' properties PROP_SKIP_SAVE.

Forgot to do that for some in previous commits, that kind of props are
better with 'skip save' behavior (simpler to handle in keyconfigs).

===================================================================

M	source/blender/editors/space_node/node_select.c
M	source/blender/editors/space_outliner/outliner_select.c

===================================================================

diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c
index a5e37ceae96..b52d1d3b78f 100644
--- a/source/blender/editors/space_node/node_select.c
+++ b/source/blender/editors/space_node/node_select.c
@@ -581,15 +581,17 @@ void NODE_OT_select(wmOperatorType *ot)
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 
   /* properties */
+  PropertyRNA *prop;
   RNA_def_int(ot->srna, "mouse_x", 0, INT_MIN, INT_MAX, "Mouse X", "", INT_MIN, INT_MAX);
   RNA_def_int(ot->srna, "mouse_y", 0, INT_MIN, INT_MAX, "Mouse Y", "", INT_MIN, INT_MAX);
   RNA_def_boolean(ot->srna, "extend", false, "Extend", "");
   RNA_def_boolean(ot->srna, "socket_select", false, "Socket Select", "");
-  RNA_def_boolean(ot->srna,
-                  "deselect_all",
-                  false,
-                  "Deselect On Nothing",
-                  "Deselect all when nothing under the cursor");
+  prop = RNA_def_boolean(ot->srna,
+                         "deselect_all",
+                         false,
+                         "Deselect On Nothing",
+                         "Deselect all when nothing under the cursor");
+  RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
 
 /** \} */
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index 6c1a84af60f..995f41382cd 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -1371,13 +1371,15 @@ void OUTLINER_OT_item_activate(wmOperatorType *ot)
 
   ot->poll = ED_operator_outliner_active;
 
+  PropertyRNA *prop;
   RNA_def_boolean(ot->srna, "extend", true, "Extend", "Extend selection for activation");
   RNA_def_boolean(ot->srna, "recursive", false, "Recursive", "Select Objects and their children");
-  RNA_def_boolean(ot->srna,
-                  "deselect_all",
-                  false,
-                  "Deselect On Nothing",
-                  "Deselect all when nothing under the cursor");
+  prop = RNA_def_boolean(ot->srna,
+                         "deselect_all",
+                         false,
+                         "Deselect On Nothing",
+                         "Deselect all when nothing under the cursor");
+  RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
 
 /* ****************************************************** */



More information about the Bf-blender-cvs mailing list