No longer need to check _slim
It's a property with false as the default value within the SkinObject class
This commit is contained in:
parent
b2932c96bb
commit
3feb9cf9f6
|
|
@ -340,7 +340,7 @@ class SkinObject extends THREE.Group {
|
||||||
this.leftLeg.position.x = 2;
|
this.leftLeg.position.x = 2;
|
||||||
this.add(this.leftLeg);
|
this.add(this.leftLeg);
|
||||||
|
|
||||||
this.slim = false;
|
// this.slim = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
get slim() {
|
get slim() {
|
||||||
|
|
@ -348,12 +348,10 @@ class SkinObject extends THREE.Group {
|
||||||
}
|
}
|
||||||
|
|
||||||
set slim(value) {
|
set slim(value) {
|
||||||
if (this._slim !== value) {
|
|
||||||
this._slim = value;
|
this._slim = value;
|
||||||
this.modelListeners.forEach(listener => listener());
|
this.modelListeners.forEach(listener => listener());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
class CapeObject extends THREE.Group {
|
class CapeObject extends THREE.Group {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue