Merged changes in the trunk up to revision 42902.
[blender.git] / source / blender / render / intern / source / shadeoutput.c
index 9bc2529568fad133051a201e1ef366867ad6889d..900313182ce97de8cfe63688dd479e2bd7c83a2f 100644 (file)
@@ -269,14 +269,12 @@ static void spothalo(struct LampRen *lar, ShadeInput *shi, float *intens)
                                if(p1[2]<-ladist) t1= t3;
                        }
                        else {
-                               ok1= 1;
                                t1= t3;
                        }
                        if(ok2) {
                                if(p2[2]<-ladist) t2= t3;
                        }
                        else {
-                               ok2= 1;
                                t2= t3;
                        }
                }