Răsfoiți Sursa

GLTFLoader: Rename createNode to createNodeAttachment

Takahiro 4 ani în urmă
părinte
comite
345c52ec34
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 2 2
      examples/js/loaders/GLTFLoader.js
  2. 2 2
      examples/jsm/loaders/GLTFLoader.js

+ 2 - 2
examples/js/loaders/GLTFLoader.js

@@ -474,7 +474,7 @@ THREE.GLTFLoader = ( function () {
 
 	};
 
-	GLTFLightsExtension.prototype.createNode = function ( nodeIndex ) {
+	GLTFLightsExtension.prototype.createNodeAttachment = function ( nodeIndex ) {
 
 		var self = this;
 		var parser = this.parser;
@@ -3419,7 +3419,7 @@ THREE.GLTFLoader = ( function () {
 
 			parser._invokeAll( function ( ext ) {
 
-				return ext.createNode && ext.createNode( nodeIndex );
+				return ext.createNodeAttachment && ext.createNodeAttachment( nodeIndex );
 
 			} ).forEach( function ( promise ) {
 

+ 2 - 2
examples/jsm/loaders/GLTFLoader.js

@@ -539,7 +539,7 @@ var GLTFLoader = ( function () {
 
 	};
 
-	GLTFLightsExtension.prototype.createNode = function ( nodeIndex ) {
+	GLTFLightsExtension.prototype.createNodeAttachment = function ( nodeIndex ) {
 
 		var self = this;
 		var parser = this.parser;
@@ -3484,7 +3484,7 @@ var GLTFLoader = ( function () {
 
 			parser._invokeAll( function ( ext ) {
 
-				return ext.createNode && ext.createNode( nodeIndex );
+				return ext.createNodeAttachment && ext.createNodeAttachment( nodeIndex );
 
 			} ).forEach( function ( promise ) {