Skip to content

Commit 0690d6d

Browse files
authored
Draco decompression uses normalized flag from attribute (playcanvas#2058)
1 parent da7b96e commit 0690d6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/resources/parser/glb-parser.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ Object.assign(pc, function () {
332332
values: values,
333333
numComponents: attribute.num_components(),
334334
componentSizeInBytes: componentSizeInBytes,
335-
storageType: storageType
335+
storageType: storageType,
336+
normalized: attribute.normalized()
336337
};
337338
};
338339

@@ -350,7 +351,7 @@ Object.assign(pc, function () {
350351
semantic: semantic,
351352
components: attributeInfo.numComponents,
352353
type: attributeInfo.storageType,
353-
normalize: semanticMap[attrib].normalize
354+
normalize: attributeInfo.normalized
354355
});
355356

356357
// store the info we'll need to copy this data into the vertex buffer

0 commit comments

Comments
 (0)