Index: source/blender/editors/include/ED_mesh.h |
=================================================================== |
--- source/blender/editors/include/ED_mesh.h (revision 46690) |
+++ source/blender/editors/include/ED_mesh.h (working copy) |
@@ -267,6 +267,18 @@ |
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 |