OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 int prev_vert_tot; | 260 int prev_vert_tot; |
261 int prev_edge_tot; | 261 int prev_edge_tot; |
262 int prev_ob_mode; | 262 int prev_ob_mode; |
263 } MirrTopoStore_t; | 263 } MirrTopoStore_t; |
264 | 264 |
265 int ED_mesh_mirrtopo_recalc_check(struct Mesh *me, const int ob_mode, MirrTopoS
tore_t *mesh_topo_store); | 265 int ED_mesh_mirrtopo_recalc_check(struct Mesh *me, const int ob_mode, MirrTopoS
tore_t *mesh_topo_store); |
266 void ED_mesh_mirrtopo_init(struct Mesh *me, const int ob_mode, MirrTopoStore_t *
mesh_topo_store, | 266 void ED_mesh_mirrtopo_init(struct Mesh *me, const int ob_mode, MirrTopoStore_t *
mesh_topo_store, |
267 const short skip_em_vert_array_init); | 267 const short skip_em_vert_array_init); |
268 void ED_mesh_mirrtopo_free(MirrTopoStore_t *mesh_topo_store); | 268 void ED_mesh_mirrtopo_free(MirrTopoStore_t *mesh_topo_store); |
269 | 269 |
| 270 /* mesh backup */ |
| 271 typedef struct BMBackup { |
| 272 struct BMesh *bmcopy; |
| 273 } BMBackup; |
| 274 |
| 275 /* save a copy of the bmesh for restoring later */ |
| 276 struct BMBackup EDBM_redo_state_store(struct BMEditMesh *em); |
| 277 /* restore a bmesh from backup */ |
| 278 void EDBM_redo_state_restore(struct BMBackup, struct BMEditMesh *em, int recalct
ess); |
| 279 /* delete the backup, optionally flushing it to an editmesh */ |
| 280 void EDBM_redo_state_free(struct BMBackup *, struct BMEditMesh *em, int recalcte
ss); |
| 281 |
270 #ifdef __cplusplus | 282 #ifdef __cplusplus |
271 } | 283 } |
272 #endif | 284 #endif |
273 | 285 |
274 #endif /* __ED_MESH_H__ */ | 286 #endif /* __ED_MESH_H__ */ |
OLD | NEW |