Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-25 10:59:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-25 11:10:56 +0300
commit452cc0193255c9e80ca4f163a2d524ed6bb17ef1 (patch)
tree7dd4239f890f3c38af73eb250d50dbd8a4967714 /source/blender/editors/space_graph
parent8d634c1b27dca7b0b30da461c4be5dccbdbfea9e (diff)
Cleanup: skip saving selection properties set in the keymap
Having settings such as "extend" saved between executions causes keymaps that don't include this setting to remember the value between execution. No longer store this setting for selection operations & remove redundant values from the key-maps, see: T90275.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_edit.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 8bfafc6bef8..2955c4ef7ae 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -417,6 +417,8 @@ static int graphkeys_click_insert_invoke(bContext *C, wmOperator *op, const wmEv
void GRAPH_OT_click_insert(wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
/* Identifiers */
ot->name = "Click-Insert Keyframes";
ot->idname = "GRAPH_OT_click_insert";
@@ -443,11 +445,12 @@ void GRAPH_OT_click_insert(wmOperatorType *ot)
RNA_def_float(
ot->srna, "value", 1.0f, -FLT_MAX, FLT_MAX, "Value", "Value for keyframe on", 0, 100);
- RNA_def_boolean(ot->srna,
- "extend",
- false,
- "Extend",
- "Extend selection instead of deselecting everything first");
+ prop = RNA_def_boolean(ot->srna,
+ "extend",
+ false,
+ "Extend",
+ "Extend selection instead of deselecting everything first");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
/** \} */