瀏覽代碼

Update Material.js

And once more...
bGute 7 年之前
父節點
當前提交
46da7e9d7b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/materials/Material.js

+ 3 - 3
src/materials/Material.js

@@ -232,9 +232,9 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 		// rotation (SpriteMaterial)
 		if ( this.rotation !== 0 ) data.rotation = this.rotation;
 		
-		if (this.polygonOffset === true) data.polygonOffset = true;
-		if (this.polygonOffsetFactor !== 0) data.polygonOffsetFactor = this.polygonOffsetFactor;
-		if (this.polygonOffsetUnits !== 0) data.polygonOffsetUnits = this.polygonOffsetUnits;
+		if ( this.polygonOffset === true ) data.polygonOffset = true;
+		if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor;
+		if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits;
 
 		if ( this.linewidth !== 1 ) data.linewidth = this.linewidth;
 		if ( this.dashSize !== undefined ) data.dashSize = this.dashSize;