WM: remove view operators from the undo stack
authorAlessio Monti di Sopra <a.monti>
Mon, 18 Nov 2019 13:55:15 +0000 (00:55 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Nov 2019 13:56:07 +0000 (00:56 +1100)
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_nla/nla_edit.c
source/blender/editors/space_node/node_view.c
source/blender/editors/space_sequencer/sequencer_edit.c

index 242acfd0261f0d1e76a07fa93914b2060798d31d..5eac041b217bed179796f2e308e8c81d0b8582a2 100644 (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;
 }
 
 /* ************************************************************************** */
index 02d5eed482218b208b208a17b5e5af1963ffb00b..7ca0b6afadc102fadc685f9db8b6d431d20c369f 100644 (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 *********************** */
index 052f653ca7f0a96d96576b634e7a7e32948effe6..04a20efe8876d15455b75e31482959f564eff7b5 100644 (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;
 }
 
 /* *********************************************** */
index 7dec6f5a4ef53ada22b14ce7de1853532015c27c..f12d972f30c23e8d414b25669f027986fd9388b9 100644 (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 ************** */
index ed384cfc1a843e36119f30926cbcd0f21f5cee9c..57a0d63c35e24bcc223c40aa8b33d02c2c7cadb0 100644 (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 */