Another 3-in-one commit:
- Unitialized variable in new shadow code caused Sun lamp shadow to not work. - Ipo handle bug: when the handle was vertical it flipped around - Loop select: unitialized variable caused it to work unpredictable in cases. Also found an unitialized var in collaps_edgeuvs().
This commit is contained in:
@@ -1022,7 +1022,7 @@ float lamp_get_visibility(LampRen *lar, float *co, float *lv, float *dist)
|
||||
return 1.0f;
|
||||
}
|
||||
else {
|
||||
float visifac, t;
|
||||
float visifac= 1.0f, t;
|
||||
|
||||
VECSUB(lv, co, lar->co);
|
||||
*dist= sqrt( INPR(lv, lv));
|
||||
|
||||
Reference in New Issue
Block a user