[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58061] branches/soc-2013-ui_replay/source /blender: Explicitly creating ListBase and assigning its fields before passing to WM_operator_build_stack .

Vincent Akkermans vincent at ack-err.net
Sun Jul 7 17:30:27 CEST 2013


Revision: 58061
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58061
Author:   ack-err
Date:     2013-07-07 15:30:27 +0000 (Sun, 07 Jul 2013)
Log Message:
-----------
Explicitly creating ListBase and assigning its fields before passing to WM_operator_build_stack.

Modified Paths:
--------------
    branches/soc-2013-ui_replay/source/blender/blenkernel/intern/blender.c
    branches/soc-2013-ui_replay/source/blender/editors/util/editmode_undo.c

Modified: branches/soc-2013-ui_replay/source/blender/blenkernel/intern/blender.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/blenkernel/intern/blender.c	2013-07-07 15:29:00 UTC (rev 58060)
+++ branches/soc-2013-ui_replay/source/blender/blenkernel/intern/blender.c	2013-07-07 15:30:27 UTC (rev 58061)
@@ -595,7 +595,9 @@
 	BLI_strncpy(G.main->name, mainstr, sizeof(G.main->name)); /* restore */
 	G.fileflags = fileflags;
 
-	ListBase included_ops = {undobase.first, uel};
+	ListBase included_ops;
+	included_ops.first = undobase.first;
+	included_ops.last = uel;
 	WM_operator_build_stack(C, &included_ops, true);
 
 	if (success) {

Modified: branches/soc-2013-ui_replay/source/blender/editors/util/editmode_undo.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/editors/util/editmode_undo.c	2013-07-07 15:29:00 UTC (rev 58060)
+++ branches/soc-2013-ui_replay/source/blender/editors/util/editmode_undo.c	2013-07-07 15:30:27 UTC (rev 58061)
@@ -113,8 +113,10 @@
 {
 	if (undo) {
 		undo->to_editmode(undo->undodata, editdata, obdata);
-		ListBase included_in_stack = {undobase.first, undo};
-		WM_operator_build_stack(C, &included_in_stack, true);
+		ListBase included_ops;
+		included_ops.first = undobase.first;
+		included_ops.last = undo;
+		WM_operator_build_stack(C, &included_ops, true);
 	}
 }
 




More information about the Bf-blender-cvs mailing list