Implement XBoneInfo – bone‑hierarchy support

This commit is contained in:
njohnson 2025-09-07 23:06:06 -04:00
parent b62c548193
commit 1545a92c27

View File

@ -2,7 +2,7 @@
XBoneInfo::XBoneInfo()
: XAsset()
, mBounds()
, mBounds(3)
, mOffset()
, mRadiusSquared(0)
{
@ -16,12 +16,25 @@ XBoneInfo::~XBoneInfo()
void XBoneInfo::ParseData(QDataStream *aStream)
{
if (GetPtr() == -1)
{
*aStream
>> mBounds[0][0]
>> mBounds[0][1]
>> mBounds[0][2]
>> mBounds[1][0]
>> mBounds[1][1]
>> mBounds[1][2]
>> mOffset[0]
>> mOffset[1]
>> mOffset[2]
>> mRadiusSquared;
}
}
void XBoneInfo::Clear()
{
mBounds = QVector<QVector3D>();
mBounds.clear();
mOffset = QVector3D();
mRadiusSquared = 0;
}