1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-07 17:34:33 +00:00

Add post-processing for bhkListShape subshapes

bhkListShape contains a list of subshape references that need to be
resolved after initial parsing. Without calling postRecordList(), the
mSubshapes list would contain unresolved RecordPtrs.

This adds the missing post() override to properly load subshape data,
consistent with other NIF record types that contain RecordPtr lists.
This commit is contained in:
rapidsamphire 2025-11-07 14:56:05 -06:00
parent 39d117e362
commit a3d99ce636
2 changed files with 6 additions and 0 deletions

View file

@ -770,6 +770,11 @@ namespace Nif
filter.read(nif);
}
void bhkListShape::post(Reader& nif)
{
postRecordList(nif, mSubshapes);
}
void bhkCompressedMeshShape::read(NIFStream* nif)
{
mTarget.read(nif);

View file

@ -730,6 +730,7 @@ namespace Nif
std::vector<HavokFilter> mHavokFilters;
void read(NIFStream* nif) override;
void post(Reader& nif) override;
};
struct bhkCompressedMeshShape : public bhkShape