[Bf-blender-cvs] [64c27b96909] master: WM: remove view operators from the undo stack

Alessio Monti di Sopra noreply at git.blender.org
Mon Nov 18 14:56:27 CET 2019


Commit: 64c27b96909834381558375ee1f27bdec04360f3
Author: Alessio Monti di Sopra
Date:   Tue Nov 19 00:55:15 2019 +1100
Branches: master
https://developer.blender.org/rB64c27b96909834381558375ee1f27bdec04360f3

WM: remove view operators from the undo stack

===================================================================

M	source/blender/editors/space_action/action_edit.c
M	source/blender/editors/space_graph/graph_edit.c
M	source/blender/editors/space_nla/nla_edit.c
M	source/blender/editors/space_node/node_view.c
M	source/blender/editors/space_sequencer/sequencer_edit.c

===================================================================

diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c
index 242acfd0261..5eac041b217 100644
--- a/source/blender/editors/space_action/action_edit.c
+++ b/source/blender/editors/space_action/action_edit.c
@@ -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;
 }
 
 /* ************************************************************************** */
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 02d5eed4822..7ca0b6afadc 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -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 *********************** */
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c
index 052f653ca7f..04a20efe887 100644
--- a/source/blender/editors/space_nla/nla_edit.c
+++ b/source/blender/editors/space_nla/nla_edit.c
@@ -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;
 }
 
 /* *********************************************** */
diff --git a/source/blender/editors/space_node/node_view.c b/source/blender/editors/space_node/node_view.c
index 7dec6f5a4ef..f12d972f30c 100644
--- a/source/blender/editors/space_node/node_view.c
+++ b/source/blender/editors/space_node/node_view.c
@@ -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 ************** */
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index ed384cfc1a8..57a0d63c35e 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -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 */



More information about the Bf-blender-cvs mailing list