Implement XBoneInfo – bone‑hierarchy support
This commit is contained in:
parent
b62c548193
commit
1545a92c27
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user