ousnius / nifly

C++ NIF library for the Gamebryo/NetImmerse File Format
GNU General Public License v3.0
52 stars 23 forks source link

Nifly doesn't read NIFs with skinned meshes without Vertex Weights in NiSkinData properly #38

Open ja231c opened 1 year ago

ja231c commented 1 year ago

It works in Skyrim SE, it probably works in other games that use a NiSkinPartition too, it works in NifSkope, it works in the NifTools Blender NIF Plugin.

But it doesn't work properly in any program based on Nifly.

ousnius commented 1 year ago

@ja231c nifly does load and save NiSkinData blocks with "Has Vertex Weights = false". There was a small bug when the vertex count in the NiSkinData was > 0 even though weights were off: https://github.com/ousnius/nifly/commit/d76bcf0a963dd3d6fb82df3004e481e10ae04848

What functionality are you referring to that isn't working in for example Outfit Studio with NIFs that have Has Vertex Weights = false? Do you have an example NIF for me to test? How do the bugs make themselves visible?