浏览代码

Some cleanup of copied code

Luis Fraguada 5 年之前
父节点
当前提交
a868fe3a41
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8 7
      examples/jsm/loaders/3DMLoader.js

+ 8 - 7
examples/jsm/loaders/3DMLoader.js

@@ -76,7 +76,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 			// Load transcoder wrapper.
 			var jsLoader = new FileLoader( this.manager );
-			jsLoader.setPath( this.transcoderPath );
+			jsLoader.setPath( this.libraryPath );
 			var jsContent = new Promise( ( resolve, reject ) => {
 
 				jsLoader.load( 'rhino3dm.js', resolve, undefined, reject );
@@ -85,7 +85,7 @@ Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 			// Load transcoder WASM binary.
 			var binaryLoader = new FileLoader( this.manager );
-			binaryLoader.setPath( this.transcoderPath );
+			binaryLoader.setPath( this.libraryPath );
 			binaryLoader.setResponseType( 'arraybuffer' );
 			var binaryContent = new Promise( ( resolve, reject ) => {
 
@@ -123,6 +123,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 
 	var libraryConfig;
 	var libraryPending;
+	var _RhinoFile;
 
 	onmessage = function ( e ) {
 
@@ -140,7 +141,7 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 
 					};
 
-					DracoDecoderModule( decoderConfig );
+					//DracoDecoderModule( decoderConfig );
 
 				} );
 				break;
@@ -152,18 +153,18 @@ Rhino3dmLoader.Rhino3dmWorker = function () {
 	function init( wasmBinary ) {
 
 		var rhino3dmModule;
-		transcoderPending = new Promise( ( resolve ) => {
+		libraryPending = new Promise( ( resolve ) => {
 
 			rhino3dmModule = { wasmBinary, onRuntimeInitialized: resolve };
-			BASIS( rhino3dmModule );
+			//BASIS( rhino3dmModule );
 
 		} ).then( () => {
 
 			var { BasisFile, initializeBasis } = rhino3dmModule;
 
-			_BasisFile = BasisFile;
+			_RhinoFile = BasisFile;
 
-			initializeBasis();
+			//initializeBasis();
 
 		} );