diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-22 04:58:38 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-22 04:58:38 +0300 |
commit | d95ad1a445e4d504f8f0734a063e1bad59a74ed1 (patch) | |
tree | 5a073971ba5afb8cce695fbb95e8473c6100b526 /source/blender/blenloader | |
parent | faa871117f6ed2221758820bef028d2dd034069c (diff) |
Undo in sculpt mode works now. Also removed some unused old code in sculpt.c
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 8fc50004011..c62ecfd9f6b 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3779,6 +3779,7 @@ static void direct_link_scene(FileData *fd, Scene *sce) if(sce->toolsettings) { sce->toolsettings->vpaint= newdataadr(fd, sce->toolsettings->vpaint); sce->toolsettings->wpaint= newdataadr(fd, sce->toolsettings->wpaint); + sce->toolsettings->sculpt= newdataadr(fd, sce->toolsettings->sculpt); if(sce->toolsettings->sculpt) sce->toolsettings->sculpt->session= NULL; } diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 2f31320444b..9c94842ac08 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1547,6 +1547,8 @@ static void write_scenes(WriteData *wd, ListBase *scebase) writestruct(wd, DATA, "VPaint", 1, sce->toolsettings->vpaint); if(sce->toolsettings->wpaint) writestruct(wd, DATA, "VPaint", 1, sce->toolsettings->wpaint); + if(sce->toolsettings->sculpt) + writestruct(wd, DATA, "Sculpt", 1, sce->toolsettings->sculpt); ed= sce->ed; if(ed) { |