Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_undo.c
| Show First 20 Lines • Show All 620 Lines • ▼ Show 20 Lines | |||||
| #ifdef USE_ARRAY_STORE | #ifdef USE_ARRAY_STORE | ||||
| { | { | ||||
| /* Add ourselves. */ | /* Add ourselves. */ | ||||
| BLI_addtail(&um_arraystore.local_links, um); | BLI_addtail(&um_arraystore.local_links, um); | ||||
| # ifdef USE_ARRAY_STORE_THREAD | # ifdef USE_ARRAY_STORE_THREAD | ||||
| if (um_arraystore.task_pool == NULL) { | if (um_arraystore.task_pool == NULL) { | ||||
| um_arraystore.task_pool = BLI_task_pool_create_background(NULL, TASK_PRIORITY_LOW); | um_arraystore.task_pool = BLI_task_pool_create_background(NULL, TASK_PRIORITY_LOW, true); | ||||
| } | } | ||||
| struct UMArrayData *um_data = MEM_mallocN(sizeof(*um_data), __func__); | struct UMArrayData *um_data = MEM_mallocN(sizeof(*um_data), __func__); | ||||
| um_data->um = um; | um_data->um = um; | ||||
| um_data->um_ref = um_ref; | um_data->um_ref = um_ref; | ||||
| BLI_task_pool_push(um_arraystore.task_pool, um_arraystore_compact_cb, um_data, true, NULL); | BLI_task_pool_push(um_arraystore.task_pool, um_arraystore_compact_cb, um_data, true, NULL); | ||||
| # else | # else | ||||
| ▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines | |||||