diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-07 12:27:13 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-07 12:27:13 +0400 |
commit | 45ce1c003d7d28b2beb5dbf465f523c5bc41bc55 (patch) | |
tree | a03f36a0c8513d837d2d4e8db40b6d022b40d546 /source/blender/blenloader | |
parent | f4e312dd1b53d3fa4c65f47bfb9972bbb9f5abab (diff) |
Modes are now toggled on using operators on load if the file was saved in
that mode. This ensures proper initialization happens like creating the
cursor or building an acceleration structure. It also means edit and
particle mode are now saveable.
Not sure yet if this is a good feature, though personally I like being able
to load my exact state again after saving, but maybe entering edit mode is
too slow in some cases? It's easy to make it work only for the sculpt/paint
modes again if wanted.
This fixes bug #21004 about a missing sculpt cursor on load.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6dcfb7f0ec7..be3e3c25b05 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3887,9 +3887,6 @@ static void direct_link_object(FileData *fd, Object *ob) /* weak weak... this was only meant as draw flag, now is used in give_base too */ ob->flag &= ~OB_FROMGROUP; - /* editmode doesn't get saved in files, so should get cleared when reloading... */ - ob->mode &= ~(OB_MODE_EDIT|OB_MODE_PARTICLE_EDIT); - ob->disp.first=ob->disp.last= NULL; ob->adt= newdataadr(fd, ob->adt); |