diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-07 09:27:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-07 09:27:33 +0300 |
commit | dac125b8ecd51b89ce8dc65080ad3d2111c0ed7b (patch) | |
tree | 483e0c88684ca4b0afc99008dcb964600596f4ec /source | |
parent | 2b5c93d8fe0e46ae21027355d6efa4a7d910c42d (diff) |
writefile: call undo flush after writing the windowmanager
Data here is constantly changing, avoids outliner data being included in those changes for undo.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index e8bbc5ef36b..a761a56a42d 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) |