From 81d75df48a42a13e80f1b86fdf9d028aaef8afea Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Fri, 30 Aug 2019 19:19:52 +0900 Subject: [PATCH] Rename typeSizeInBytes to numComponents. --- tiny_gltf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 27de815..54389cd 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -745,12 +745,12 @@ struct Accessor { return -1; } - int typeSizeInBytes = GetNumComponentsInType(static_cast(type)); - if (typeSizeInBytes <= 0) { + int numComponents = GetNumComponentsInType(static_cast(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.