- Potential future bug in simple subsurf (used & when should be ==).

- out of date comment in Displace code.
This commit is contained in:
Robert Wenzlaff 2004-01-11 16:20:49 +00:00
parent 73529471e7
commit d0fd7d2fea
2 changed files with 2 additions and 2 deletions

@ -930,7 +930,7 @@ static DispListMesh *subsurf_subdivide_to_displistmesh(HyperMesh *hme, short sub
tmp->hasuvco= hme->hasuvco;
tmp->orig_me= hme->orig_me;
if (type & ME_SIMPLE_SUBSURF) hypermesh_simple_subdivide(hme, tmp);
if (type == ME_SIMPLE_SUBSURF) hypermesh_simple_subdivide(hme, tmp);
else hypermesh_subdivide(hme, tmp); /* default to CC subdiv. */
hypermesh_free(hme);

@ -3188,7 +3188,7 @@ void displace_render_vert(ShadeInput *shi, VertRen *vr, float *scale)
do_material_tex(shi);
/* 0.25 could become button once? */
/* 0.5 could become button once? */
vr->co[0] += 0.5 * shi->displace[0] * scale[0] ;
vr->co[1] += 0.5 * shi->displace[1] * scale[1] ;
vr->co[2] += 0.5 * shi->displace[2] * scale[2] ;