diff options
Diffstat (limited to 'source/blender/editors/include/ED_mesh.h')
-rw-r--r-- | source/blender/editors/include/ED_mesh.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index 71d37d5c6ea..7e84962b154 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -267,6 +267,18 @@ void ED_mesh_mirrtopo_init(struct Mesh *me, const int ob_mode, MirrTopoStore_t * const short skip_em_vert_array_init); void ED_mesh_mirrtopo_free(MirrTopoStore_t *mesh_topo_store); +/* mesh backup */ +typedef struct BMBackup { + struct BMesh *bmcopy; +} BMBackup; + +/* save a copy of the bmesh for restoring later */ +struct BMBackup EDBM_redo_state_store(struct BMEditMesh *em); +/* restore a bmesh from backup */ +void EDBM_redo_state_restore(struct BMBackup, struct BMEditMesh *em, int recalctess); +/* delete the backup, optionally flushing it to an editmesh */ +void EDBM_redo_state_free(struct BMBackup *, struct BMEditMesh *em, int recalctess); + #ifdef __cplusplus } #endif |