Fix: Parse data stream for XCLeafBrushNodeChildren
This commit is contained in:
parent
00c84fd622
commit
fbf295f2a8
@ -6,6 +6,7 @@ XCLeafBrushNodeChildren::XCLeafBrushNodeChildren()
|
||||
, mRange(0.0f)
|
||||
, mChildOffset()
|
||||
{
|
||||
SetName("C Leaf Brush Node Children");
|
||||
}
|
||||
|
||||
XCLeafBrushNodeChildren::~XCLeafBrushNodeChildren()
|
||||
@ -13,13 +14,15 @@ XCLeafBrushNodeChildren::~XCLeafBrushNodeChildren()
|
||||
|
||||
}
|
||||
|
||||
void XCLeafBrushNodeChildren::ParseData(QDataStream *aStream) {
|
||||
void XCLeafBrushNodeChildren::ParseData(XDataStream *aStream) {
|
||||
if (GetPtr() == -1) {
|
||||
*aStream
|
||||
>> mDist
|
||||
>> mRange
|
||||
>> mChildOffset[0]
|
||||
>> mChildOffset[1];
|
||||
mDist = aStream->ParseSingle(QString("%1 distance").arg(GetName()));
|
||||
mRange = aStream->ParseSingle(QString("%1 range").arg(GetName()));
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
mChildOffset[i] = aStream->ParseUInt32(QString("%1 child offset %2").arg(GetName()).arg(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user