Make sure we invalidate the node ID layer each time the PBVH is reset.
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 17 Apr 2014 17:53:20 +0000 (20:53 +0300)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 17 Apr 2014 17:53:40 +0000 (20:53 +0300)
commit169f8313940e826587fc50b3c4e3b082d15b51e5
tree97e968ed2f30d326530d7a666fea3f49b1adc37b
parentfe3eb825206c969a2cf333769e6b58f2abec74b1
Make sure we invalidate the node ID layer each time the PBVH is reset.

It makes code more tidy (avoids having to call invalidation on a myriad
places). Also makes sure other invalidation cases (some mesh change,
e.g.) work as expected.
source/blender/blenkernel/intern/pbvh_bmesh.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_intern.h
source/blender/editors/sculpt_paint/sculpt_undo.c