diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-21 07:03:39 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-21 07:03:39 +0300 |
commit | ba32e1e2fa687aa59e5a6cc5f3a79077c9ca0876 (patch) | |
tree | f64a042b967047b523ad6f1d412a247ab52b5778 /source/blender/include/BDR_sculptmode.h | |
parent | 2d0a83ba09a8cb4c881053a5f27ebc7c8a769e65 (diff) |
Changed the sculptmode undo system slightly to make it easier to improve/extend. Should be helpful in integrating multires into the undo system better.
Diffstat (limited to 'source/blender/include/BDR_sculptmode.h')
-rw-r--r-- | source/blender/include/BDR_sculptmode.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/include/BDR_sculptmode.h b/source/blender/include/BDR_sculptmode.h index 7b070d9ebbd..1f18c9dcf4f 100644 --- a/source/blender/include/BDR_sculptmode.h +++ b/source/blender/include/BDR_sculptmode.h @@ -34,6 +34,7 @@ struct uiBlock; struct BrushData; struct Mesh; struct Object; +struct PartialVisibility; struct Scene; struct ScrArea; @@ -57,7 +58,12 @@ void sculptmode_init(struct Scene *); void sculptmode_free_all(struct Scene *); /* Undo */ -void sculptmode_undo_push(char *str, int verts, int pmv, int fe); +typedef enum SculptUndoType { + SUNDO_VERT= 1, /* Vertex locations modified */ + SUNDO_TOPO= 2, /* Any face/edge change, different # of verts, etc. */ + SUNDO_PVIS= 4 /* Mesh.pv changed */ +} SculptUndoType; +void sculptmode_undo_push(char *str, SculptUndoType type); void sculptmode_undo(); void sculptmode_redo(); void sculptmode_undo_menu(); @@ -79,6 +85,8 @@ void set_sculpt_object(struct Object *ob); void set_sculptmode(); /* Partial Mesh Visibility */ +struct PartialVisibility *sculptmode_copy_pmv(struct PartialVisibility *); +void sculptmode_pmv_free(struct PartialVisibility *); void sculptmode_revert_pmv(struct Mesh *me); void sculptmode_pmv_off(struct Mesh *me); void sculptmode_pmv(int mode); |