From a3d99ce636721b32fed18ec24c5388652721e634 Mon Sep 17 00:00:00 2001 From: rapidsamphire Date: Fri, 7 Nov 2025 14:56:05 -0600 Subject: [PATCH] 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. --- components/nif/physics.cpp | 5 +++++ components/nif/physics.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/components/nif/physics.cpp b/components/nif/physics.cpp index 6368537e60..f855edb30a 100644 --- a/components/nif/physics.cpp +++ b/components/nif/physics.cpp @@ -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); diff --git a/components/nif/physics.hpp b/components/nif/physics.hpp index 286c8cc353..d3ac22b4b8 100644 --- a/components/nif/physics.hpp +++ b/components/nif/physics.hpp @@ -730,6 +730,7 @@ namespace Nif std::vector mHavokFilters; void read(NIFStream* nif) override; + void post(Reader& nif) override; }; struct bhkCompressedMeshShape : public bhkShape