Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,013 Lines • ▼ Show 20 Lines | if (!ss) { | ||||
| return; | return; | ||||
| } | } | ||||
| if (ss->pbvh) { | if (ss->pbvh) { | ||||
| BKE_pbvh_free(ss->pbvh); | BKE_pbvh_free(ss->pbvh); | ||||
| ss->pbvh = NULL; | ss->pbvh = NULL; | ||||
| } | } | ||||
| if (ss->pmap) { | MEM_SAFE_FREE(ss->pmap); | ||||
| MEM_freeN(ss->pmap); | |||||
| ss->pmap = NULL; | |||||
| } | |||||
| if (ss->pmap_mem) { | MEM_SAFE_FREE(ss->pmap_mem); | ||||
| MEM_freeN(ss->pmap_mem); | |||||
| ss->pmap_mem = NULL; | MEM_SAFE_FREE(ss->preview_vert_index_list); | ||||
jbakker: ```
MEM_SAFE_FREE(ss->preview_vert_index_list)
ss->preview_vert_index_count = 0;
```
Same… | |||||
| } | ss->preview_vert_index_count = 0; | ||||
| } | } | ||||
| void BKE_sculptsession_bm_to_me_for_render(Object *object) | void BKE_sculptsession_bm_to_me_for_render(Object *object) | ||||
| { | { | ||||
| if (object && object->sculpt) { | if (object && object->sculpt) { | ||||
| if (object->sculpt->bm) { | if (object->sculpt->bm) { | ||||
| /* Ensure no points to old arrays are stored in DM | /* Ensure no points to old arrays are stored in DM | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 579 Lines • Show Last 20 Lines | |||||
Same thing can also be done for the other parts of this function.
a bit shorter