sunag 7 anni fa
parent
commit
a623dc6fed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/js/nodes/core/NodeBuilder.js

+ 1 - 1
examples/js/nodes/core/NodeBuilder.js

@@ -275,7 +275,7 @@ NodeBuilder.prototype = {
 
 
 	addContext: function ( context ) {
 	addContext: function ( context ) {
 
 
-		this.context = Object.assign( this.context || {}, context || {} );
+		this.context = Object.assign( {}, this.context || {}, context || {} );
 		this.contexts.push( this.context );
 		this.contexts.push( this.context );
 
 
 		return this;
 		return this;