2
0
Daniel Sturk 6 жил өмнө
parent
commit
a9518ccb5f

+ 4 - 2
examples/jsm/nodes/materials/nodes/StandardNode.js

@@ -468,9 +468,11 @@ StandardNode.prototype.copy = function ( source ) {
 	if ( source.ambient ) this.ambient = source.ambient;
 	if ( source.ambient ) this.ambient = source.ambient;
 
 
 	if ( source.environment ) this.environment = source.environment;
 	if ( source.environment ) this.environment = source.environment;
-	
+
 	if ( source.sheen ) this.sheen = source.sheen;
 	if ( source.sheen ) this.sheen = source.sheen;
 
 
+	return this;
+
 };
 };
 
 
 StandardNode.prototype.toJSON = function ( meta ) {
 StandardNode.prototype.toJSON = function ( meta ) {
@@ -511,7 +513,7 @@ StandardNode.prototype.toJSON = function ( meta ) {
 		if ( this.ambient ) data.ambient = this.ambient.toJSON( meta ).uuid;
 		if ( this.ambient ) data.ambient = this.ambient.toJSON( meta ).uuid;
 
 
 		if ( this.environment ) data.environment = this.environment.toJSON( meta ).uuid;
 		if ( this.environment ) data.environment = this.environment.toJSON( meta ).uuid;
-		
+
 		if ( this.sheen ) data.sheen = this.sheen.toJSON( meta ).uuid;
 		if ( this.sheen ) data.sheen = this.sheen.toJSON( meta ).uuid;
 
 
 	}
 	}