Divide by 3 instead of multiplying by variations of 0.333

Fixes small precision problems.
This commit is contained in:
2013-02-14 17:35:43 +00:00
parent 7ae735dc4a
commit e3944f5bfa
11 changed files with 21 additions and 21 deletions

View File

@@ -562,7 +562,7 @@ int closest_point_on_surface(SurfaceModifierData *surmd, const float co[3], floa
if (mface->v4)
add_v3_v3(surface_vel, surmd->v[mface->v4].co);
mul_v3_fl(surface_vel, mface->v4 ? 0.25f : 0.333f);
mul_v3_fl(surface_vel, mface->v4 ? 0.25f : (1.0f / 3.0f));
}
return 1;
}