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