Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-07-07 09:27:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-07-07 09:27:33 +0300
commitdac125b8ecd51b89ce8dc65080ad3d2111c0ed7b (patch)
tree483e0c88684ca4b0afc99008dcb964600596f4ec /source
parent2b5c93d8fe0e46ae21027355d6efa4a7d910c42d (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.c4
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)