Update glTFAsset.inl
closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage.pull/903/head
parent
c9c6fda28e
commit
38ce71d5a0
|
@ -288,7 +288,7 @@ inline void Buffer::Read(Value& obj, Asset& r)
|
||||||
}
|
}
|
||||||
|
|
||||||
this->mData.reset(new uint8_t[dataURI.dataLength]);
|
this->mData.reset(new uint8_t[dataURI.dataLength]);
|
||||||
memcmp(dataURI.data, this->mData.get(), dataURI.dataLength);
|
memcpy( this->mData.get(), dataURI.data, dataURI.dataLength );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // Local file
|
else { // Local file
|
||||||
|
|
Loading…
Reference in New Issue