Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_intern.h
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
| typedef enum { | typedef enum { | ||||
| SCULPT_UNDO_COORDS, | SCULPT_UNDO_COORDS, | ||||
| SCULPT_UNDO_HIDDEN, | SCULPT_UNDO_HIDDEN, | ||||
| SCULPT_UNDO_MASK, | SCULPT_UNDO_MASK, | ||||
| SCULPT_UNDO_DYNTOPO_BEGIN, | SCULPT_UNDO_DYNTOPO_BEGIN, | ||||
| SCULPT_UNDO_DYNTOPO_END, | SCULPT_UNDO_DYNTOPO_END, | ||||
| SCULPT_UNDO_DYNTOPO_SYMMETRIZE, | SCULPT_UNDO_DYNTOPO_SYMMETRIZE, | ||||
| SCULPT_UNDO_GEOMETRY, | |||||
| } SculptUndoType; | } SculptUndoType; | ||||
| typedef struct SculptUndoNode { | typedef struct SculptUndoNode { | ||||
| struct SculptUndoNode *next, *prev; | struct SculptUndoNode *next, *prev; | ||||
| SculptUndoType type; | SculptUndoType type; | ||||
| char idname[MAX_ID_NAME]; /* name instead of pointer*/ | char idname[MAX_ID_NAME]; /* name instead of pointer*/ | ||||
| Show All 27 Lines | typedef struct SculptUndoNode { | ||||
| int bm_enter_totvert; | int bm_enter_totvert; | ||||
| int bm_enter_totedge; | int bm_enter_totedge; | ||||
| int bm_enter_totloop; | int bm_enter_totloop; | ||||
| int bm_enter_totpoly; | int bm_enter_totpoly; | ||||
| /* shape keys */ | /* shape keys */ | ||||
| char shapeName[sizeof(((KeyBlock *)0))->name]; | char shapeName[sizeof(((KeyBlock *)0))->name]; | ||||
| /* gometry modification operations */ | |||||
brecht: gometry -> geometry | |||||
| CustomData geom_vdata; | |||||
| CustomData geom_edata; | |||||
| CustomData geom_ldata; | |||||
| CustomData geom_pdata; | |||||
| int geom_totvert; | |||||
| int geom_totedge; | |||||
| int geom_totloop; | |||||
| int geom_totpoly; | |||||
| size_t undo_size; | size_t undo_size; | ||||
| } SculptUndoNode; | } SculptUndoNode; | ||||
| /* Factor of brush to have rake point following behind | /* Factor of brush to have rake point following behind | ||||
| * (could be configurable but this is reasonable default). */ | * (could be configurable but this is reasonable default). */ | ||||
| #define SCULPT_RAKE_BRUSH_FACTOR 0.25f | #define SCULPT_RAKE_BRUSH_FACTOR 0.25f | ||||
| struct SculptRakeData { | struct SculptRakeData { | ||||
| ▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines | |||||
gometry -> geometry