diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-03-07 18:58:56 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-03-07 18:58:56 +0400 |
commit | f03df4f0241328c1d65e6910a5374935a6f2f78d (patch) | |
tree | 4036b214febb83a120dbde4ff0f3a42f7a6baf88 /source/blender/blenkernel/BKE_pbvh.h | |
parent | 20f7a34abe871a6c3e4b168c6831bbaef55ce64f (diff) |
Fix crash when changing and using between layer and other brushes in
dyntopo
Layer brush would not invalidate the layer_disp arrays in dyntopo mode,
checking only for the existence of the array. This means that if a tool
resized the node due to topology changes, the layer brush code could
index (and write!) out of bounds in the array. Solution is to invalidate
the layer data prior to each stroke in dyntopo.
Diffstat (limited to 'source/blender/blenkernel/BKE_pbvh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_pbvh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h index 34e96599b7e..7a0c8a1f187 100644 --- a/source/blender/blenkernel/BKE_pbvh.h +++ b/source/blender/blenkernel/BKE_pbvh.h @@ -71,6 +71,7 @@ void BKE_pbvh_build_bmesh(PBVH *bvh, struct BMesh *bm, int smooth_shading, struct BMLog *log); void BKE_pbvh_free(PBVH *bvh); +void BKE_pbvh_free_layer_disp(PBVH *bvh); /* Hierarchical Search in the BVH, two methods: * - for each hit calling a callback |