Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/softbody.c
| Context not available. | |||||
| sb_threads[i].tot= totthread; | sb_threads[i].tot= totthread; | ||||
| } | } | ||||
| if (totthread > 1) { | if (totthread > 1) { | ||||
| BLI_threadpool_init(&threads, exec_scan_for_ext_spring_forces, totthread); | BLI_threadpool_init(&threads, exec_scan_for_ext_spring_forces, totthread, "SBSprings"); | ||||
| for (i=0; i<totthread; i++) | for (i=0; i<totthread; i++) | ||||
| BLI_threadpool_insert(&threads, &sb_threads[i]); | BLI_threadpool_insert(&threads, &sb_threads[i]); | ||||
| Context not available. | |||||
| if (totthread > 1) { | if (totthread > 1) { | ||||
| BLI_threadpool_init(&threads, exec_softbody_calc_forces, totthread); | BLI_threadpool_init(&threads, exec_softbody_calc_forces, totthread, "SoftBody"); | ||||
| for (i=0; i<totthread; i++) | for (i=0; i<totthread; i++) | ||||
| BLI_threadpool_insert(&threads, &sb_threads[i]); | BLI_threadpool_insert(&threads, &sb_threads[i]); | ||||
| Context not available. | |||||