Skip to content

Commit

Permalink
Merge pull request #19767 from parke/patch-1
Browse files Browse the repository at this point in the history
Docs: Added .js extension to path of GLTFLoader.
  • Loading branch information
mrdoob committed Jul 2, 2020
2 parents fcfc615 + 2b624ac commit 91f3ebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/manual/en/introduction/Loading-3D-models.html
Expand Up @@ -85,7 +85,7 @@ <h2>Loading</h2>
</p>

<code>
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
</code>

<p>
Expand All @@ -95,7 +95,7 @@ <h2>Loading</h2>
</p>

<code>
var loader = new THREE.GLTFLoader();
var loader = new GLTFLoader();

loader.load( 'path/to/model.glb', function ( gltf ) {

Expand Down
4 changes: 2 additions & 2 deletions docs/manual/zh/introduction/Loading-3D-models.html
Expand Up @@ -75,7 +75,7 @@ <h2>加载</h2>
</p>

<code>
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
</code>

<p>
Expand All @@ -84,7 +84,7 @@ <h2>加载</h2>
</p>

<code>
var loader = new THREE.GLTFLoader();
var loader = new GLTFLoader();

loader.load( 'path/to/model.glb', function ( gltf ) {

Expand Down

0 comments on commit 91f3ebc

Please sign in to comment.