Fix: ParseData method implementation
This commit is contained in:
parent
48d7c3e692
commit
a8cee21ae8
@ -7,6 +7,7 @@ XCLeafBrushNode::XCLeafBrushNode()
|
||||
, mContents(0)
|
||||
, mData()
|
||||
{
|
||||
SetName("C Leaf Brush Node");
|
||||
}
|
||||
|
||||
XCLeafBrushNode::~XCLeafBrushNode()
|
||||
@ -14,12 +15,11 @@ XCLeafBrushNode::~XCLeafBrushNode()
|
||||
|
||||
}
|
||||
|
||||
void XCLeafBrushNode::ParseData(QDataStream *aStream) {
|
||||
void XCLeafBrushNode::ParseData(XDataStream *aStream) {
|
||||
if (GetPtr() == -1) {
|
||||
*aStream
|
||||
>> mAxis
|
||||
>> mLeafBrushCount
|
||||
>> mContents;
|
||||
mAxis = aStream->ParseUInt8(QString("%1 axis").arg(GetName()));
|
||||
mLeafBrushCount = aStream->ParseInt16(QString("%1 leaf brush count").arg(GetName()));
|
||||
mContents = aStream->ParseInt32(QString("%1 contents").arg(GetName()));
|
||||
|
||||
// Parse data
|
||||
mData.ParseData(aStream);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user