diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-07-27 23:21:10 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-07-27 23:21:10 +0400 |
commit | 5a3572beecf86bdbdc8fe1589567f5d4d66b095b (patch) | |
tree | dd71e5b7d7f855ddb959f541818e58e60d42a9cf /source/blender/src | |
parent | 495a8d393745e65d4c0e2e72734871955cb8b20a (diff) |
Somewhat hacky support for undo in sculptmode; does a copy of MVert DerivedMesh data when pushing undo, but not for regular save/load.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/sculptmode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 7b55893fa40..d899ecbdd24 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1825,6 +1825,9 @@ void sculpt(void) MEM_freeN(a); sculpt_stroke_free(); + get_mesh(OBACT)->mr_undo = ss->mvert; + get_mesh(OBACT)->mr_undo_tot = ss->totvert; + sculpt_undo_push(G.scene->sculptdata.brush_type); if(G.vd->depths) G.vd->depths->damaged= 1; |