style cleanup: whitespace / commas
This commit is contained in:
@@ -756,7 +756,7 @@ static void do_texture_effector(EffectorCache *eff, EffectorData *efd, EffectedP
|
||||
|
||||
strength= eff->pd->f_strength * efd->falloff;
|
||||
|
||||
copy_v3_v3(tex_co,point->loc);
|
||||
copy_v3_v3(tex_co, point->loc);
|
||||
|
||||
if (eff->pd->flag & PFIELD_TEX_2D) {
|
||||
float fac=-dot_v3v3(tex_co, efd->nor);
|
||||
@@ -767,7 +767,7 @@ static void do_texture_effector(EffectorCache *eff, EffectorData *efd, EffectedP
|
||||
mul_m4_v3(eff->ob->imat, tex_co);
|
||||
}
|
||||
|
||||
hasrgb = multitex_ext(eff->pd->tex, tex_co, NULL,NULL, 0, result);
|
||||
hasrgb = multitex_ext(eff->pd->tex, tex_co, NULL, NULL, 0, result);
|
||||
|
||||
if (hasrgb && mode==PFIELD_TEX_RGB) {
|
||||
force[0] = (0.5f - result->tr) * strength;
|
||||
@@ -820,7 +820,7 @@ static void do_physical_effector(EffectorCache *eff, EffectorData *efd, Effected
|
||||
{
|
||||
PartDeflect *pd = eff->pd;
|
||||
RNG *rng = pd->rng;
|
||||
float force[3]={0,0,0};
|
||||
float force[3]={0, 0, 0};
|
||||
float temp[3];
|
||||
float fac;
|
||||
float strength = pd->f_strength;
|
||||
@@ -905,9 +905,9 @@ static void do_physical_effector(EffectorCache *eff, EffectorData *efd, Effected
|
||||
else {
|
||||
add_v3_v3v3(temp, efd->vec_to_point2, efd->nor2);
|
||||
}
|
||||
force[0] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[0], temp[1], temp[2], 2,0,2);
|
||||
force[1] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[1], temp[2], temp[0], 2,0,2);
|
||||
force[2] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[2], temp[0], temp[1], 2,0,2);
|
||||
force[0] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[0], temp[1], temp[2], 2, 0, 2);
|
||||
force[1] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[1], temp[2], temp[0], 2, 0, 2);
|
||||
force[2] = -1.0f + 2.0f * BLI_gTurbulence(pd->f_size, temp[2], temp[0], temp[1], 2, 0, 2);
|
||||
mul_v3_fl(force, strength * efd->falloff);
|
||||
break;
|
||||
case PFIELD_DRAG:
|
||||
@@ -993,7 +993,7 @@ void pdDoEffectors(ListBase *effectors, ListBase *colliders, EffectorWeights *we
|
||||
else if (eff->pd->forcefield == PFIELD_TEXTURE)
|
||||
do_texture_effector(eff, &efd, point, force);
|
||||
else {
|
||||
float temp1[3]={0,0,0}, temp2[3];
|
||||
float temp1[3]={0, 0, 0}, temp2[3];
|
||||
copy_v3_v3(temp1, force);
|
||||
|
||||
do_physical_effector(eff, &efd, point, force);
|
||||
|
||||
Reference in New Issue
Block a user