Undo: Minor optimization: do not write Scene's 3DCursor.
Probably not much gained here, but that's one thing less potentially making the scene seen as changed in undo steps...
This commit is contained in:
parent
0faeca806c
commit
1998154ff4
|
@ -2577,6 +2577,12 @@ static void write_lightcache(WriteData *wd, LightCache *cache)
|
|||
|
||||
static void write_scene(WriteData *wd, Scene *sce, const void *id_address)
|
||||
{
|
||||
if (wd->use_memfile) {
|
||||
/* Clean up, important in undo case to reduce false detection of changed datablocks. */
|
||||
/* XXX This UI data should not be stored in Scene at all... */
|
||||
memset(&sce->cursor, 0, sizeof(sce->cursor));
|
||||
}
|
||||
|
||||
/* write LibData */
|
||||
writestruct_at_address(wd, ID_SCE, Scene, 1, id_address, sce);
|
||||
write_iddata(wd, &sce->id);
|
||||
|
|
Loading…
Reference in New Issue