forked from bartvdbraak/blender
- Potential future bug in simple subsurf (used & when should be ==).
- out of date comment in Displace code.
This commit is contained in:
parent
73529471e7
commit
d0fd7d2fea
@ -930,7 +930,7 @@ static DispListMesh *subsurf_subdivide_to_displistmesh(HyperMesh *hme, short sub
|
|||||||
tmp->hasuvco= hme->hasuvco;
|
tmp->hasuvco= hme->hasuvco;
|
||||||
tmp->orig_me= hme->orig_me;
|
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. */
|
else hypermesh_subdivide(hme, tmp); /* default to CC subdiv. */
|
||||||
|
|
||||||
hypermesh_free(hme);
|
hypermesh_free(hme);
|
||||||
|
@ -3188,7 +3188,7 @@ void displace_render_vert(ShadeInput *shi, VertRen *vr, float *scale)
|
|||||||
|
|
||||||
do_material_tex(shi);
|
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[0] += 0.5 * shi->displace[0] * scale[0] ;
|
||||||
vr->co[1] += 0.5 * shi->displace[1] * scale[1] ;
|
vr->co[1] += 0.5 * shi->displace[1] * scale[1] ;
|
||||||
vr->co[2] += 0.5 * shi->displace[2] * scale[2] ;
|
vr->co[2] += 0.5 * shi->displace[2] * scale[2] ;
|
||||||
|
Loading…
Reference in New Issue
Block a user