Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle.c
| Show First 20 Lines • Show All 3,173 Lines • ▼ Show 20 Lines | if (sim->psys->flag & PSYS_GLOBAL_HAIR) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* create a task pool for child path tasks */ | /* create a task pool for child path tasks */ | ||||
| if (!psys_thread_context_init_path(&ctx, sim, sim->scene, cfra, editupdate, use_render_params)) { | if (!psys_thread_context_init_path(&ctx, sim, sim->scene, cfra, editupdate, use_render_params)) { | ||||
| return; | return; | ||||
| } | } | ||||
| task_pool = BLI_task_pool_create(&ctx, TASK_PRIORITY_LOW); | task_pool = BLI_task_pool_create(&ctx, TASK_PRIORITY_LOW, TASK_ISOLATION_ON); | ||||
| totchild = ctx.totchild; | totchild = ctx.totchild; | ||||
| totparent = ctx.totparent; | totparent = ctx.totparent; | ||||
| if (editupdate && sim->psys->childcache && totchild == sim->psys->totchildcache) { | if (editupdate && sim->psys->childcache && totchild == sim->psys->totchildcache) { | ||||
| /* just overwrite the existing cache */ | /* just overwrite the existing cache */ | ||||
| } | } | ||||
| else { | else { | ||||
| /* clear out old and create new empty path cache */ | /* clear out old and create new empty path cache */ | ||||
| ▲ Show 20 Lines • Show All 2,230 Lines • Show Last 20 Lines | |||||