mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 23:27:34 +02:00
Minor fix allows import GLTF from Substance Painter
This commit is contained in:
parent
1a06278b17
commit
1130f9998d
2 changed files with 3 additions and 3 deletions
|
@ -1174,7 +1174,7 @@ bool GLTFReader::addArrayOfType(const QByteArray& bin, int byteOffset, int byteL
|
|||
break;
|
||||
}
|
||||
case GLTFAccessorComponentType::UNSIGNED_INT: {
|
||||
readArray<quint8>(bin, byteOffset, byteLength, outarray, accessorType);
|
||||
readArray<quint32>(bin, byteOffset, byteLength, outarray, accessorType);
|
||||
break;
|
||||
}
|
||||
case GLTFAccessorComponentType::UNSIGNED_SHORT: {
|
||||
|
|
|
@ -190,7 +190,7 @@ namespace GLTFBufferViewTarget {
|
|||
struct GLTFBufferView {
|
||||
int buffer; //required
|
||||
int byteLength; //required
|
||||
int byteOffset;
|
||||
int byteOffset { 0 };
|
||||
int target;
|
||||
QMap<QString, bool> defined;
|
||||
void dump() {
|
||||
|
@ -470,7 +470,7 @@ namespace GLTFAccessorComponentType {
|
|||
}
|
||||
struct GLTFAccessor {
|
||||
int bufferView;
|
||||
int byteOffset;
|
||||
int byteOffset { 0 };
|
||||
int componentType; //required
|
||||
int count; //required
|
||||
int type; //required
|
||||
|
|
Loading…
Reference in a new issue