amorilia/niflib — pull request #20 by skyfox69 (2012-11-29 14:06:19+00:00)
Title: high bit (0x1000) in bsNumUvSets is lost

Loading Skyrim version of NIF initializes bsNumUvSets but not numUvSets from older versions. But re-calculating bsNumUvSets in NiGeometryData::bsNumUvSetsCalc() used numUvSets only for calculating high bit. This works well for loading old style NIF and save them with new version but not when loading and saving new style.

Added bsNumUvSets in NiGeometryData::bsNumUvSetsCalc() instead of initializing numUvSets with unknown data in read().