Selaa lähdekoodia

revert getShared

sunag 6 vuotta sitten
vanhempi
commit
1263eb3431
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      examples/jsm/nodes/accessors/NormalNode.js

+ 3 - 3
examples/jsm/nodes/accessors/NormalNode.js

@@ -20,11 +20,11 @@ NormalNode.prototype = Object.create( TempNode.prototype );
 NormalNode.prototype.constructor = NormalNode;
 NormalNode.prototype.constructor = NormalNode;
 NormalNode.prototype.nodeType = "Normal";
 NormalNode.prototype.nodeType = "Normal";
 
 
-NormalNode.prototype.getUnique = function () {
+NormalNode.prototype.getShared = function () {
 
 
-	// if unique is true, TempNode will not create temp variable (for optimization)
+	// if shared is false, TempNode will not create temp variable (for optimization)
 
 
-	return this.scope === NormalNode.LOCAL;
+	return this.scope === NormalNode.WORLD;
 
 
 };
 };