Skip to content

Commit 527ceee

Browse files
committed
Material: Clean up.
1 parent 5fe7cb5 commit 527ceee

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/materials/Material.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ Material.prototype = {
151151
data.uuid = this.uuid;
152152
data.type = this.type;
153153

154-
data.depthFunc = this.depthFunc;
155-
data.depthTest = this.depthTest;
156-
data.depthWrite = this.depthWrite;
157-
158154
if ( this.name !== '' ) data.name = this.name;
159155

160156
if ( (this.color && this.color.isColor) ) data.color = this.color.getHex();
@@ -211,6 +207,11 @@ Material.prototype = {
211207

212208
if ( this.opacity < 1 ) data.opacity = this.opacity;
213209
if ( this.transparent === true ) data.transparent = this.transparent;
210+
211+
data.depthFunc = this.depthFunc;
212+
data.depthTest = this.depthTest;
213+
data.depthWrite = this.depthWrite;
214+
214215
if ( this.alphaTest > 0 ) data.alphaTest = this.alphaTest;
215216
if ( this.premultipliedAlpha === true ) data.premultipliedAlpha = this.premultipliedAlpha;
216217
if ( this.wireframe === true ) data.wireframe = this.wireframe;

0 commit comments

Comments
 (0)