Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_tangent.c
| Show First 20 Lines • Show All 650 Lines • ▼ Show 20 Lines | #ifdef USE_LOOPTRI_DETECT_QUADS | ||||
| } | } | ||||
| else { | else { | ||||
| num_face_as_quad_map = (int)looptri_len; | num_face_as_quad_map = (int)looptri_len; | ||||
| } | } | ||||
| #endif | #endif | ||||
| /* Calculation */ | /* Calculation */ | ||||
| if (looptri_len != 0) { | if (looptri_len != 0) { | ||||
| TaskPool *task_pool = BLI_task_pool_create(NULL, TASK_PRIORITY_LOW); | TaskPool *task_pool = BLI_task_pool_create(NULL, TASK_PRIORITY_LOW, TASK_ISOLATION_ON); | ||||
| tangent_mask_curr = 0; | tangent_mask_curr = 0; | ||||
| /* Calculate tangent layers */ | /* Calculate tangent layers */ | ||||
| SGLSLMeshToTangent data_array[MAX_MTFACE]; | SGLSLMeshToTangent data_array[MAX_MTFACE]; | ||||
| const int tangent_layer_num = CustomData_number_of_layers(loopdata_out, CD_TANGENT); | const int tangent_layer_num = CustomData_number_of_layers(loopdata_out, CD_TANGENT); | ||||
| for (int n = 0; n < tangent_layer_num; n++) { | for (int n = 0; n < tangent_layer_num; n++) { | ||||
| int index = CustomData_get_layer_index_n(loopdata_out, CD_TANGENT, n); | int index = CustomData_get_layer_index_n(loopdata_out, CD_TANGENT, n); | ||||
| BLI_assert(n < MAX_MTFACE); | BLI_assert(n < MAX_MTFACE); | ||||
| ▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines | |||||