diff options
author | Tom Edwards <contact@steamreview.org> | 2014-01-20 16:36:00 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-20 16:39:30 +0400 |
commit | aa18c4c445cbe7e5cbf0b766a42cfc9e4b764002 (patch) | |
tree | b14f5a2ce2b1c924eecbd83c436df3fba7ad1050 /source | |
parent | 59762ff0f729607420fcfe8ad5e337a0c84f6726 (diff) |
Clear object recalc flag on load
It is possible that object in .blend file will have non-zero
recalc flags. Clear them on load in order to prevent possible
unneeded recalc after the load.
Differential Revision: https://developer.blender.org/D224
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index a63d7025708..88e7f85a03d 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4829,6 +4829,11 @@ static void direct_link_object(FileData *fd, Object *ob) /* weak weak... this was only meant as draw flag, now is used in give_base_to_objects too */ ob->flag &= ~OB_FROMGROUP; + /* This is a transient flag; clear in order to avoid unneeded object update pending from + * time when file was saved. + */ + ob->recalc = 0; + /* loading saved files with editmode enabled works, but for undo we like * to stay in object mode during undo presses so keep editmode disabled. * |