Browse Source

Merge pull request #18931 from Mugen87/dev41

Editor: Ensure to correctly configure GLTFLoader with DRACOLoader.
Michael Herzog 5 years ago
parent
commit
3d35dd1f40
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/js/Loader.js

+ 4 - 0
editor/js/Loader.js

@@ -219,7 +219,11 @@ var Loader = function ( editor ) {
 
 					} else {
 
+						var dracoLoader = new DRACOLoader();
+						dracoLoader.setDecoderPath( '../examples/js/libs/draco/gltf/' );
+
 						loader = new GLTFLoader( manager );
+						loader.setDRACOLoader( dracoLoader );
 
 					}