BadDogSkyrim / PyNifly

Export/Import tools between Blender and the Nif format, using Bodyslide/Outfit Studio's Nifly layer. Supports Skyrim LE, Skyrim SE, Fallout 4, Fallout New Vegas, Fallout 76, and Fallout 3.
GNU General Public License v3.0
179 stars 16 forks source link

Plugin only imports 30 Bstrishapes #120

Closed GRY4096 closed 2 years ago

GRY4096 commented 2 years ago

I have noticed that blender only imports 30 meshes if the nif contains more than 30 BSTriShapes/BSSubIndexTriShapes.

Blender 3.1.2 Pynifly 5.8.2

BadDogSkyrim commented 2 years ago

OMG

Do you have a nif handy with more than 30?

GRY4096 commented 2 years ago

Hello! yes i happen to have a mesh with more than 30 BSSubIndexTriShapes. Outfit.zip I am trying to optimise these meshes in blender by merging a lot of the bstrishapes since they use the same bgsm file.

BadDogSkyrim commented 2 years ago

Holy shit.

... Okay. Do you know why some shapes are BSTriShape instead of BSSubIndexTriShape?

EDIT: So far as I know, if a shape is going to be skinned in FO4 it has to b a BSSubIndexTriShape. So I think it's actually a bug that a few of these shapes are BSTriShapes. They tend to be parts attached to the body or not visible at all, so maybe the issue doesn't show up in game.

GRY4096 commented 2 years ago

Thanks for looking into this. The bstrishapes inbetween is something i fixed with outfit studio. Here's the fixed nif. Outfit_fixed.zip

I had issues with only the first 30 BSSubIndexTriShapes getting imported into blender with this nif as well.

BadDogSkyrim commented 2 years ago

Yeah, apparently I limited shapes to 30 as a quick way to get things working and never fixed it. Fixed in next release.

GRY4096 commented 2 years ago

Thanks!