Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvergenz committed Feb 4, 2019
1 parent b78f40b commit 43eda00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/src/types/runtime/assets/material.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Material extends Asset implements MaterialLike, Patchable<AssetLike

/** @inheritdoc */
public get color() { return this._color; }
public set color(value) { value && this._color.copy(value); }
public set color(value) { if (value) { this._color.copy(value); } }

/** @returns A shared reference to this material's texture asset */
public get mainTexture() { return this.manager.assets[this._mainTextureId] as Texture; }
Expand All @@ -82,11 +82,11 @@ export class Material extends Asset implements MaterialLike, Patchable<AssetLike

/** @inheritdoc */
public get mainTextureOffset() { return this._mainTextureOffset; }
public set mainTextureOffset(value) { value && this._mainTextureOffset.copy(value); }
public set mainTextureOffset(value) { if (value) { this._mainTextureOffset.copy(value); } }

/** @inheritdoc */
public get mainTextureScale() { return this._mainTextureScale; }
public set mainTextureScale(value) { value && this._mainTextureScale.copy(value); }
public set mainTextureScale(value) { if (value) { this._mainTextureScale.copy(value); } }

/** @inheritdoc */
public get material(): MaterialLike { return this; }
Expand Down

0 comments on commit 43eda00

Please sign in to comment.