Change write-only properties to methods

This commit is contained in:
yushijinhun 2018-10-20 22:11:43 +08:00
parent a495e0f629
commit 2b5f664f9e
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 2 additions and 2 deletions

View File

@ -349,11 +349,11 @@ export class SkinObject extends THREE.Group {
return this.children.filter(it => it instanceof BodyPart) as Array<BodyPart>; return this.children.filter(it => it instanceof BodyPart) as Array<BodyPart>;
} }
set innerLayerVisible(value: boolean) { setInnerLayerVisible(value: boolean) {
this.getBodyParts().forEach(part => part.innerLayer.visible = value); this.getBodyParts().forEach(part => part.innerLayer.visible = value);
} }
set outerLayerVisible(value: boolean) { setOuterLayerVisible(value: boolean) {
this.getBodyParts().forEach(part => part.outerLayer.visible = value); this.getBodyParts().forEach(part => part.outerLayer.visible = value);
} }
} }