cinderblocks / libremetaverse

An fork of the libopenmetaverse library striving for performance improvements and up-to-date compatibility with SL/OS/Halcyon
BSD 3-Clause "New" or "Revised" License
60 stars 40 forks source link

Update BakeLayer.cs #41

Closed Madpeterz closed 3 years ago

Madpeterz commented 3 years ago

switchs logger to "Logger.Log" so it follows logging levels adds bounds checks for the following values sourceAlpha, bakedRed, bakedGreen, bakedBlue, sourceRed, sourceGreen, sourceBlue, bakedAlpha, sourceBump so if something goes wrong it should not outright crash

Maybe we could add a one time error to this to detect when it happens or switch it to a try catch

this pull request does not include the changes to packet.cs as I was unable to safely check where that was being created :(

thoys commented 3 years ago

packet.cs seems to be generated using mapgen.bat