WM: remove view operators from the undo stack

This commit is contained in:
Alessio Monti di Sopra 2019-11-19 00:55:15 +11:00 committed by Campbell Barton
parent d66bc3807f
commit 64c27b9690
5 changed files with 12 additions and 12 deletions

View File

@ -457,7 +457,7 @@ void ACTION_OT_view_all(wmOperatorType *ot)
ot->poll = ED_operator_action_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
void ACTION_OT_view_selected(wmOperatorType *ot)
@ -472,7 +472,7 @@ void ACTION_OT_view_selected(wmOperatorType *ot)
ot->poll = ED_operator_action_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* ****************** View-All Operator ****************** */
@ -497,7 +497,7 @@ void ACTION_OT_view_frame(wmOperatorType *ot)
ot->poll = ED_operator_action_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* ************************************************************************** */

View File

@ -333,7 +333,7 @@ void GRAPH_OT_view_all(wmOperatorType *ot)
ot->poll = ED_operator_graphedit_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
/* props */
ot->prop = RNA_def_boolean(ot->srna,
@ -356,7 +356,7 @@ void GRAPH_OT_view_selected(wmOperatorType *ot)
ot->poll = ED_operator_graphedit_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
/* props */
ot->prop = RNA_def_boolean(ot->srna,
@ -387,7 +387,7 @@ void GRAPH_OT_view_frame(wmOperatorType *ot)
ot->poll = ED_operator_graphedit_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* ******************** Create Ghost-Curves Operator *********************** */

View File

@ -535,7 +535,7 @@ void NLA_OT_view_all(wmOperatorType *ot)
ot->poll = ED_operator_nla_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
void NLA_OT_view_selected(wmOperatorType *ot)
@ -550,7 +550,7 @@ void NLA_OT_view_selected(wmOperatorType *ot)
ot->poll = ED_operator_nla_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* *********************************************** */
@ -574,7 +574,7 @@ void NLA_OT_view_frame(wmOperatorType *ot)
ot->poll = ED_operator_nla_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* *********************************************** */

View File

@ -150,7 +150,7 @@ void NODE_OT_view_all(wmOperatorType *ot)
ot->poll = ED_operator_node_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
static int node_view_selected_exec(bContext *C, wmOperator *op)
@ -179,7 +179,7 @@ void NODE_OT_view_selected(wmOperatorType *ot)
ot->poll = ED_operator_node_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* **************** Background Image Operators ************** */

View File

@ -2862,7 +2862,7 @@ void SEQUENCER_OT_view_frame(wmOperatorType *ot)
ot->poll = ED_operator_sequencer_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = 0;
}
/* view_all operator */