From fe106d5206af8dc427bbb1154aa7a01ddcb3aeec Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 1 Jul 2020 18:28:31 -0700 Subject: [PATCH] Merge pull request #19767 from parke/patch-1 Docs: Added .js extension to path of GLTFLoader. --- docs/manual/en/introduction/Loading-3D-models.html | 4 ++-- docs/manual/zh/introduction/Loading-3D-models.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/manual/en/introduction/Loading-3D-models.html b/docs/manual/en/introduction/Loading-3D-models.html index 2debd90911..85e70f631c 100644 --- a/docs/manual/en/introduction/Loading-3D-models.html +++ b/docs/manual/en/introduction/Loading-3D-models.html @@ -85,7 +85,7 @@

- import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; + import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';

@@ -95,7 +95,7 @@

- var loader = new THREE.GLTFLoader(); + var loader = new GLTFLoader(); loader.load( 'path/to/model.glb', function ( gltf ) { diff --git a/docs/manual/zh/introduction/Loading-3D-models.html b/docs/manual/zh/introduction/Loading-3D-models.html index cfb7e4c4f1..fff4074fc4 100644 --- a/docs/manual/zh/introduction/Loading-3D-models.html +++ b/docs/manual/zh/introduction/Loading-3D-models.html @@ -75,7 +75,7 @@

- import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; + import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';

@@ -84,7 +84,7 @@

- var loader = new THREE.GLTFLoader(); + var loader = new GLTFLoader(); loader.load( 'path/to/model.glb', function ( gltf ) { -- GitLab