Skip to content

Commit 173555e

Browse files
committed
USDLoader: Fixed USDZ parsing.
1 parent e4139cf commit 173555e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

examples/jsm/loaders/USDLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class USDLoader extends Loader {
113113
} else {
114114

115115
const text = fflate.strFromU8( zip[ filename ] );
116-
data[ filename ] = usda.parse( text, data );
116+
data[ filename ] = usda.parseText( text );
117117

118118
}
119119

examples/jsm/loaders/usd/USDAParser.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616

1717
class USDAParser {
1818

19-
parse( text, assets ) {
19+
parseText( text ) {
2020

2121
const root = {};
2222

@@ -106,6 +106,14 @@ class USDAParser {
106106

107107
}
108108

109+
return root;
110+
111+
}
112+
113+
parse( text, assets ) {
114+
115+
const root = this.parseText( text );
116+
109117
// Build scene graph
110118

111119
function findMeshGeometry( data ) {

0 commit comments

Comments
 (0)