Commit: dac125b8ecd51b89ce8dc65080ad3d2111c0ed7b
Author: Campbell Barton
Date: Thu Jul 7 16:27:33 2016 +1000
Branches: master
https://developer.blender.org/rBdac125b8ecd51b89ce8dc65080ad3d2111c0ed7b
writefile: call undo flush after writing the windowmanager
Data here is constantly changing, avoids outliner data being included in those
changes for undo.
===================================================================
M source/blender/blenloader/intern/writefile.c
===================================================================
diff --git a/source/blender/blenloader/intern/writefile.c
b/source/blender/blenloader/intern/writefile.c
index e8bbc5e..a761a56 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2883,6 +2883,10 @@ static void write_windowmanagers(WriteData *wd, ListBase
*lb)
writestruct(wd, DATA, Stereo3dFormat, 1,
win->stereo3d_format);
}
}
+
+ /* typically flushing wouldn't be needed however this data _always_
changes,
+ * so flush here for more efficient undo. */
+ mywrite_flush(wd);
}
static void write_region(WriteData *wd, ARegion *ar, int spacetype)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs