5b2df63f54
The first hunk might not be necessary, but the light_coverage property was the only one that wasn't explicitly defaulted, which is unfair. ;-) The second hunk adds the missing initialization to the init routine. This is necessary, because (unlike the material entries from material.xml) the generated light entries don't get the light coverage set. Yet obj.cxx:795 reads this information out fot every leaf, although not needed in the case of lights. Avoiding this isn't worth the trouble. The last hunk sets the missing normal_index. The POINTS branch in gen_leaf was always called with this int_list empty, which made the normals handling use data garbage. |
||
---|---|---|
.. | ||
.cvsignore | ||
apt_signs.cxx | ||
apt_signs.hxx | ||
colours.h | ||
dir_lights.cxx | ||
dir_lights.hxx | ||
Makefile.am | ||
matlib.cxx | ||
matlib.hxx | ||
newmat.cxx | ||
newmat.hxx | ||
obj.cxx | ||
obj.hxx | ||
texload.c | ||
texload.h |