Jelajahi Sumber

revert getShared

sunag 6 tahun lalu
induk
melakukan
1263eb3431
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  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.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;
 
 };