Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,022 Lines • ▼ Show 20 Lines | if (ss->pmap) { | ||||
| MEM_freeN(ss->pmap); | MEM_freeN(ss->pmap); | ||||
| ss->pmap = NULL; | ss->pmap = NULL; | ||||
| } | } | ||||
| if (ss->pmap_mem) { | if (ss->pmap_mem) { | ||||
| MEM_freeN(ss->pmap_mem); | MEM_freeN(ss->pmap_mem); | ||||
| ss->pmap_mem = NULL; | ss->pmap_mem = NULL; | ||||
| } | } | ||||
| if (ss->preview_vert_index_list) { | |||||
jbakker: ```
MEM_SAFE_FREE(ss->preview_vert_index_list)
ss->preview_vert_index_count = 0;
```
Same… | |||||
| MEM_freeN(ss->preview_vert_index_list); | |||||
| ss->preview_vert_index_list = NULL; | |||||
| 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