mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-02 06:40:40 +08:00
Rename typeSizeInBytes to numComponents.
This commit is contained in:
parent
83ccb9f28d
commit
81d75df48a
@ -745,12 +745,12 @@ struct Accessor {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int typeSizeInBytes = GetNumComponentsInType(static_cast<uint32_t>(type));
|
int numComponents = GetNumComponentsInType(static_cast<uint32_t>(type));
|
||||||
if (typeSizeInBytes <= 0) {
|
if (numComponents <= 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return componentSizeInBytes * typeSizeInBytes;
|
return componentSizeInBytes * numComponents;
|
||||||
} else {
|
} else {
|
||||||
// Check if byteStride is a mulple of the size of the accessor's component
|
// Check if byteStride is a mulple of the size of the accessor's component
|
||||||
// type.
|
// type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user