]> git.mxchange.org Git - flightgear.git/commit
Patches from Melchior Franz:
authordavid <david>
Tue, 26 Mar 2002 16:10:53 +0000 (16:10 +0000)
committerdavid <david>
Tue, 26 Mar 2002 16:10:53 +0000 (16:10 +0000)
commit5b2df63f54819a0023f9e3d7128b2ee5d4a8ecf2
tree84eac4275c6cb14c1cae1b700ced8a720745281d
parentdb7013c83a40e7cf0fc387b814c01bc3e3b2fc93
Patches from Melchior Franz:

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.
src/Objects/newmat.cxx
src/Objects/obj.cxx