Ver Fonte

Added .js extension to path of GLTFLoader.

I got a 404 error when I ran the line as written, but the 404 error went away when I added .js.  So, should the path end in .js?  I am a new user of three.js.
parke há 5 anos atrás
pai
commit
f59d3fa8e7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      docs/manual/en/introduction/Loading-3D-models.html

+ 1 - 1
docs/manual/en/introduction/Loading-3D-models.html

@@ -85,7 +85,7 @@
 	</p>
 
 	<code>
-		import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
+		import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
 	</code>
 
 	<p>