From 40a1c8b4ed1e766e37475d5e6367b0f96556d7cc Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 8 Aug 2012 14:02:18 +0000 Subject: Disable saving property defaults for many of the properties for animation-editor click activated operators to prevent any further errors --- source/blender/editors/space_action/action_select.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index b42c6406362..4da283733b0 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -184,6 +184,7 @@ void ACTION_OT_select_all_toggle(wmOperatorType *ot) /* props */ ot->prop = RNA_def_boolean(ot->srna, "invert", 0, "Invert", ""); + RNA_def_property_flag(ot->prop, PROP_SKIP_SAVE); } /* ******************** Border Select Operator **************************** */ @@ -881,6 +882,8 @@ static int actkeys_select_leftright_invoke(bContext *C, wmOperator *op, wmEvent void ACTION_OT_select_leftright(wmOperatorType *ot) { + PropertyRNA *prop; + /* identifiers */ ot->name = "Select Left/Right"; ot->idname = "ACTION_OT_select_leftright"; @@ -894,9 +897,12 @@ void ACTION_OT_select_leftright(wmOperatorType *ot) /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; - /* id-props */ + /* properties */ ot->prop = RNA_def_enum(ot->srna, "mode", prop_actkeys_leftright_select_types, ACTKEYS_LRSEL_TEST, "Mode", ""); - RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); + RNA_def_property_flag(ot->prop, PROP_SKIP_SAVE); + + prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); + RNA_def_property_flag(prop, PROP_SKIP_SAVE); } /* ******************** Mouse-Click Select Operator *********************** */ @@ -1233,6 +1239,8 @@ static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *even void ACTION_OT_clickselect(wmOperatorType *ot) { + PropertyRNA *prop; + /* identifiers */ ot->name = "Mouse Select Keys"; ot->idname = "ACTION_OT_clickselect"; @@ -1245,9 +1253,11 @@ void ACTION_OT_clickselect(wmOperatorType *ot) /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; - /* id-props */ - RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY - RNA_def_boolean(ot->srna, "column", 0, "Column Select", ""); // ALTKEY + /* properties */ + prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY + RNA_def_property_flag(prop, PROP_SKIP_SAVE); + prop = RNA_def_boolean(ot->srna, "column", 0, "Column Select", ""); // ALTKEY + RNA_def_property_flag(prop, PROP_SKIP_SAVE); } /* ************************************************************************** */ -- cgit v1.2.3