WM: remove view operators from the undo stack
This commit is contained in:
parent
d66bc3807f
commit
64c27b9690
|
@ -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;
|
||||
}
|
||||
|
||||
/* ************************************************************************** */
|
||||
|
|
|
@ -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 *********************** */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/* *********************************************** */
|
||||
|
|
|
@ -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 ************** */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue