forked from bartvdbraak/blender
Bufix for #1940
With material slider "Ray Mir" set non zero, but with toggle "Ray Mirror" off, Blender accidentally entered a part of raytracing code, screwing up the alpha value of the result.
This commit is contained in:
parent
e6489f4a55
commit
81702927a8
@ -583,7 +583,10 @@ void init_render_material(Material *ma)
|
||||
if(R.osa) ma->texco |= TEXCO_OSA; /* for texfaces */
|
||||
}
|
||||
if(needuv) ma->texco |= NEED_UV;
|
||||
|
||||
|
||||
// optimize, render only checks for ray_mirror value */
|
||||
if((ma->mode & MA_RAYMIRROR)==0) ma->ray_mirror= 0.0;
|
||||
|
||||
// since the raytracer doesnt recalc O structs for each ray, we have to preset them all
|
||||
if(ma->mode & (MA_RAYMIRROR|MA_RAYTRANSP|MA_SHADOW_TRA)) {
|
||||
ma->texco |= NEED_UV|TEXCO_ORCO|TEXCO_REFL|TEXCO_NORM;
|
||||
|
Loading…
Reference in New Issue
Block a user