Skip to content

Commit 43166fc

Browse files
committed
USDCParser: Fixed scalar handling.
1 parent 87cc59b commit 43166fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/jsm/loaders/usd/USDCParser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,8 @@ class USDCParser {
12611261

12621262
switch ( type ) {
12631263

1264+
case TypeEnum.Invalid:
1265+
return null;
12641266
case TypeEnum.Bool:
12651267
return reader.readUint8() !== 0;
12661268
case TypeEnum.UChar:
@@ -1402,7 +1404,7 @@ class USDCParser {
14021404
} else {
14031405

14041406
reader.position = valueRep.payload;
1405-
value = this._readScalarValue( valueRep );
1407+
value = this._readScalarValue( valueRep.typeEnum );
14061408

14071409
}
14081410

0 commit comments

Comments
 (0)