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