[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58062] branches/soc-2013-ui_replay/source /blender: Properly declaring variables at start of code blocks.
Vincent Akkermans
vincent at ack-err.net
Sun Jul 7 18:13:37 CEST 2013
Revision: 58062
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58062
Author: ack-err
Date: 2013-07-07 16:13:36 +0000 (Sun, 07 Jul 2013)
Log Message:
-----------
Properly declaring variables at start of code blocks.
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
branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm.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:30:27 UTC (rev 58061)
+++ branches/soc-2013-ui_replay/source/blender/blenkernel/intern/blender.c 2013-07-07 16:13:36 UTC (rev 58062)
@@ -577,6 +577,7 @@
{
char mainstr[sizeof(G.main->name)];
int success = 0, fileflags;
+ ListBase included_ops;
/* This is needed so undoing/redoing doesn't crash with threaded previews going */
WM_jobs_kill_all_except(CTX_wm_manager(C), CTX_wm_screen(C));
@@ -595,7 +596,6 @@
BLI_strncpy(G.main->name, mainstr, sizeof(G.main->name)); /* restore */
G.fileflags = fileflags;
- ListBase included_ops;
included_ops.first = undobase.first;
included_ops.last = uel;
WM_operator_build_stack(C, &included_ops, true);
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:30:27 UTC (rev 58061)
+++ branches/soc-2013-ui_replay/source/blender/editors/util/editmode_undo.c 2013-07-07 16:13:36 UTC (rev 58062)
@@ -112,8 +112,8 @@
static void undo_restore(bContext *C, UndoElem *undo, void *editdata, void *obdata)
{
if (undo) {
+ ListBase included_ops;
undo->to_editmode(undo->undodata, editdata, obdata);
- ListBase included_ops;
included_ops.first = undobase.first;
included_ops.last = undo;
WM_operator_build_stack(C, &included_ops, true);
Modified: branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm.c 2013-07-07 15:30:27 UTC (rev 58061)
+++ branches/soc-2013-ui_replay/source/blender/windowmanager/intern/wm.c 2013-07-07 16:13:36 UTC (rev 58062)
@@ -179,11 +179,11 @@
void WM_operator_build_stack(bContext *C, const ListBase *uels, bool notify)
{
wmWindowManager *wm = CTX_wm_manager(C);
+ UndoElem *uel;
wm->operators.first = NULL;
wm->operators.last = NULL;
- UndoElem *uel;
for(uel = uels->first; uel && uel->prev != uels->last; uel = uel->next)
{
if(uel->op
More information about the Bf-blender-cvs
mailing list