Rename typeSizeInBytes to numComponents.

This commit is contained in:
Syoyo Fujita 2019-08-30 19:19:52 +09:00
parent 83ccb9f28d
commit 81d75df48a

View File

@ -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.