Navigation Menu

Skip to content

Commit

Permalink
fix normalized constant attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Feb 4, 2020
1 parent 580d4d6 commit 247ff8c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ export function padBuffer({
const toData = isConstant
? attribute.value
: attribute.getBuffer().getData({srcByteOffset: byteOffset});
if (attribute.settings.normalized) {
if (attribute.settings.normalized && !isConstant) {
const getter = getData;
getData = (value, chunk) => attribute._normalizeConstant(getter(value, chunk));
}
Expand Down

0 comments on commit 247ff8c

Please sign in to comment.