The PBVH usually is rebuild after a topology change, so it does not make
sense to keep the previous dynamic mesh preview vertex list. This may
cause a crash is the number of vertices of the new mesh (and preview) is
larger previous one. Now the list is deleted with the PBVH and a new one
will be generated using the new mesh when the cursor is updated.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
Code was good, but better to use MEM_SAFE_FREE for these cases
| source/blender/blenkernel/intern/paint.c | ||
|---|---|---|
| 1026 | MEM_SAFE_FREE(ss->preview_vert_index_list) ss->preview_vert_index_count = 0; Same thing can also be done for the other parts of this function. a bit shorter | |