Fix: Parse size from data stream
This commit fixes a parsing issue in `XAnimDeltaPartQuat` where the size of the data was not being correctly read from the data stream. It now uses `aStream->ParseUInt32()` to read the size, including a descriptive string for debugging.
This commit is contained in:
parent
e40bee38af
commit
8f3fa82f64
@ -1,12 +1,14 @@
|
|||||||
#include "xanimdeltapartquat.h"
|
#include "xanimdeltapartquat.h"
|
||||||
|
|
||||||
XAnimDeltaPartQuat::XAnimDeltaPartQuat()
|
XAnimDeltaPartQuat::XAnimDeltaPartQuat()
|
||||||
: XAsset() {
|
: XAsset()
|
||||||
|
{
|
||||||
|
SetName("Animation Delta Part Quat");
|
||||||
}
|
}
|
||||||
|
|
||||||
void XAnimDeltaPartQuat::ParseData(QDataStream *aStream) {
|
void XAnimDeltaPartQuat::ParseData(XDataStream *aStream) {
|
||||||
if (GetPtr() == -1) {
|
if (GetPtr() == -1) {
|
||||||
*aStream >> mSize;
|
mSize = aStream->ParseUInt32(QString("%1 size").arg(GetName()));
|
||||||
|
|
||||||
// Parse data
|
// Parse data
|
||||||
mData.ParseData(aStream);
|
mData.ParseData(aStream);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user