Load BSDismemberSkinInstance

macos-builds-only-for-openmw
Alexei Dobrohotov 3 years ago
parent 5571099147
commit 41097352a8

@ -34,6 +34,13 @@ void NiSkinInstance::post(NIFFile *nif)
}
}
void BSDismemberSkinInstance::read(NIFStream *nif)
{
NiSkinInstance::read(nif);
unsigned int numPartitions = nif->getUInt();
nif->skip(4 * numPartitions); // Body part information
}
void NiGeometryData::read(NIFStream *nif)
{
if (nif->getVersion() >= NIFStream::generateVersion(10,1,0,114))

@ -170,6 +170,11 @@ struct NiSkinInstance : public Record
void post(NIFFile *nif) override;
};
struct BSDismemberSkinInstance : public NiSkinInstance
{
void read(NIFStream *nif) override;
};
struct NiSkinData : public Record
{
struct VertWeight

@ -139,6 +139,7 @@ static std::map<std::string,RecordFactoryEntry> makeFactory()
factory["BSFurnitureMarker"] = {&construct <BSFurnitureMarker> , RC_BSFurnitureMarker };
factory["NiCollisionObject"] = {&construct <NiCollisionObject> , RC_NiCollisionObject };
factory["bhkCollisionObject"] = {&construct <bhkCollisionObject> , RC_bhkCollisionObject };
factory["BSDismemberSkinInstance"] = {&construct <BSDismemberSkinInstance> , RC_BSDismemberSkinInstance };
return factory;
}

@ -128,7 +128,8 @@ enum RecordType
RC_BSShaderNoLightingProperty,
RC_BSFurnitureMarker,
RC_NiCollisionObject,
RC_bhkCollisionObject
RC_bhkCollisionObject,
RC_BSDismemberSkinInstance
};
/// Base class for all records

Loading…
Cancel
Save