Browse Source

#19401 Fix typo in VRMLoader

Stefan Wendt 5 năm trước cách đây
mục cha
commit
f8a440be1b
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      examples/js/loaders/VRMLoader.js
  2. 1 1
      examples/jsm/loaders/VRMLoader.js

+ 1 - 1
examples/js/loaders/VRMLoader.js

@@ -41,7 +41,7 @@ THREE.VRMLoader = ( function () {
 
 		setDRACOLoader: function ( dracoLoader ) {
 
-			this.glTFLoader.setDRACOLoader( dracoLoader );
+			this.gltfLoader.setDRACOLoader( dracoLoader );
 			return this;
 
 		},

+ 1 - 1
examples/jsm/loaders/VRMLoader.js

@@ -46,7 +46,7 @@ var VRMLoader = ( function () {
 
 		setDRACOLoader: function ( dracoLoader ) {
 
-			this.glTFLoader.setDRACOLoader( dracoLoader );
+			this.gltfLoader.setDRACOLoader( dracoLoader );
 			return this;
 
 		},