Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/effect.c
| Show First 20 Lines • Show All 855 Lines • ▼ Show 20 Lines | else if (eff->pd->forcefield == PFIELD_HARMONIC && | ||||
| *p = point->index % eff->psys->totpart; | *p = point->index % eff->psys->totpart; | ||||
| *tot = *p + 1; | *tot = *p + 1; | ||||
| } | } | ||||
| if (eff->psys->part->effector_amount) { | if (eff->psys->part->effector_amount) { | ||||
| int totpart = eff->psys->totpart; | int totpart = eff->psys->totpart; | ||||
| int amount = eff->psys->part->effector_amount; | int amount = eff->psys->part->effector_amount; | ||||
| *step = (totpart > amount) ? totpart / amount : 1; | *step = (totpart > amount) ? (int)ceil((float)totpart / (float)amount) : 1; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| *tot = 1; | *tot = 1; | ||||
| } | } | ||||
| } | } | ||||
| static void do_texture_effector(EffectorCache *eff, | static void do_texture_effector(EffectorCache *eff, | ||||
| EffectorData *efd, | EffectorData *efd, | ||||
| ▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines | |||||