diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-17 20:02:55 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-17 20:03:08 +0400 |
commit | 38eef8deee4261f0139d29eb81584131a862bf59 (patch) | |
tree | eabdfc91ed986342d938c1fbcda945e768c5b660 /source/blender/editors/sculpt_paint/sculpt_intern.h | |
parent | 0ba3f7647071a7bd7fdf48e0d48a9e7e1ee79a7b (diff) |
Refactor to Dyntopo node customdata commit.
Don't use a dedicated node layer but use temporary int layer instead.
Works like a charm as long as we are careful resetting the layer when
needed (after pbvh clearing and always after bmesh has been filled in
undo)
Tip by Campbell, thanks!
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_intern.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index 79fd388e332..8cf5bf88bcc 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -42,13 +42,13 @@ struct bContext; struct Brush; -struct BMesh; struct KeyBlock; struct Mesh; struct MultiresModifierData; struct Object; struct Scene; struct Sculpt; +struct SculptSession; struct SculptStroke; struct SculptUndoNode; @@ -68,7 +68,8 @@ bool sculpt_stroke_get_location(bContext *C, float out[3], const float mouse[2]) /* Dynamic topology */ void sculpt_pbvh_clear(Object *ob); -void sculpt_dyntopo_node_layers_reset(struct BMesh *bm); +void sculpt_dyntopo_node_layers_reset(struct SculptSession *ss); +void sculpt_dyntopo_node_layers_add(struct SculptSession *ss); void sculpt_update_after_dynamic_topology_toggle(bContext *C); void sculpt_dynamic_topology_enable(struct bContext *C); void sculpt_dynamic_topology_disable(struct bContext *C, |