소스 검색

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 5 년 전
부모
커밋
f59d3fa8e7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>