Garrett Johnson %!s(int64=5) %!d(string=hai) anos
pai
achega
5ffe496d5f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/base/B3DMLoaderBase.js

+ 2 - 2
src/base/B3DMLoaderBase.js

@@ -72,7 +72,7 @@ export class B3DMLoaderBase {
 
 		const jsonFeatureTableData = new Uint8Array( buffer, featureTableStart, featureTableJSONByteLength );
 		const jsonFeatureTable = featureTableJSONByteLength === 0 ? {} : JSON.parse( arrayToString( jsonFeatureTableData ) );
-		const featureTable = {};
+		const featureTable = { ...jsonFeatureTable };
 
 		// const binFeatureTableData = new Uint8Array( buffer, featureTableStart + featureTableJSONByteLength, featureTableBinaryByteLength );
 		// TODO: dereference the json feature table data in to the binary array.
@@ -185,7 +185,7 @@ export class B3DMLoaderBase {
 
 		return {
 			version,
-			featureTable: jsonFeatureTable,
+			featureTable,
 			batchTable,
 			glbBytes,
 		};