correct spelling

This commit is contained in:
Campbell Barton 2011-01-21 02:32:58 +00:00
parent 022511d5ad
commit d7c6ddd7e9
5 changed files with 5 additions and 5 deletions

@ -2014,7 +2014,7 @@ static void view3d_main_area_setup_view(Scene *scene, View3D *v3d, ARegion *ar,
/* calculate pixelsize factor once, is used for lamps and obcenters */ /* calculate pixelsize factor once, is used for lamps and obcenters */
{ {
/* note: '1.0f / len_v3(v1)' replaced 'len_v3(rv3d->viewmat[0])' /* note: '1.0f / len_v3(v1)' replaced 'len_v3(rv3d->viewmat[0])'
* because of float point precission problems at large values [#23908] */ * because of float point precision problems at large values [#23908] */
float v1[3], v2[3]; float v1[3], v2[3];
float len1, len2; float len1, len2;

@ -699,7 +699,7 @@ static void viewrotate_apply(ViewOpsData *vod, int x, int y)
vod->oldx= x; vod->oldx= x;
vod->oldy= y; vod->oldy= y;
/* avoid precission loss over time */ /* avoid precision loss over time */
normalize_qt(rv3d->viewquat); normalize_qt(rv3d->viewquat);
ED_region_tag_redraw(vod->ar); ED_region_tag_redraw(vod->ar);

@ -266,7 +266,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
step_tot = ((step_tot + 1) * ltmd->iter) - (ltmd->iter - 1); step_tot = ((step_tot + 1) * ltmd->iter) - (ltmd->iter - 1);
/* will the screw be closed? /* will the screw be closed?
* Note! smaller then FLT_EPSILON*100 gives problems with float precission so its never closed. */ * Note! smaller then FLT_EPSILON*100 gives problems with float precision so its never closed. */
if (fabs(screw_ofs) <= (FLT_EPSILON*100) && fabs(fabs(angle) - (M_PI * 2)) <= (FLT_EPSILON*100)) { if (fabs(screw_ofs) <= (FLT_EPSILON*100) && fabs(fabs(angle) - (M_PI * 2)) <= (FLT_EPSILON*100)) {
close= 1; close= 1;
step_tot--; step_tot--;

@ -901,7 +901,7 @@ static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kw
case 2: case 2:
if (mathutils_array_parse(quat, 3, 3, seq, "mathutils.Quaternion()") == -1) if (mathutils_array_parse(quat, 3, 3, seq, "mathutils.Quaternion()") == -1)
return NULL; return NULL;
angle= fmod(angle + M_PI*2, M_PI*4) - M_PI*2; /* clamp because of precission issues */ angle= fmod(angle + M_PI*2, M_PI*4) - M_PI*2; /* clamp because of precision issues */
axis_angle_to_quat(quat, quat, angle); axis_angle_to_quat(quat, quat, angle);
break; break;
/* PyArg_ParseTuple assures no more then 2 */ /* PyArg_ParseTuple assures no more then 2 */

@ -2690,7 +2690,7 @@ void do_sky_tex(float *rco, float *lo, float *dxyview, float *hor, float *zen, f
switch(mtex->texco) { switch(mtex->texco) {
case TEXCO_ANGMAP: case TEXCO_ANGMAP:
/* only works with texture being "real" */ /* only works with texture being "real" */
/* use saacos(), fixes bug [#22398], float precission caused lo[2] to be slightly less then -1.0 */ /* use saacos(), fixes bug [#22398], float precision caused lo[2] to be slightly less then -1.0 */
if(lo[0] || lo[1]) { /* check for zero case [#24807] */ if(lo[0] || lo[1]) { /* check for zero case [#24807] */
fact= (1.0/M_PI)*saacos(lo[2])/(sqrt(lo[0]*lo[0] + lo[1]*lo[1])); fact= (1.0/M_PI)*saacos(lo[2])/(sqrt(lo[0]*lo[0] + lo[1]*lo[1]));
tempvec[0]= lo[0]*fact; tempvec[0]= lo[0]*fact;