Преглед изворни кода

Editor: Ensure to correctly configure GLTFLoader with DRACOLoader.

Mugen87 пре 5 година
родитељ
комит
8e37797a0d
1 измењених фајлова са 4 додато и 0 уклоњено
  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 );
 
 					}