Set to triple equals
This commit is contained in:
parent
0cf0430a5d
commit
4b584783d7
|
@ -12,13 +12,13 @@ export default class Geometry {
|
||||||
}
|
}
|
||||||
|
|
||||||
make(type) {
|
make(type) {
|
||||||
if(type == 'plane') {
|
if(type === 'plane') {
|
||||||
return (width, height, widthSegments = 1, heightSegments = 1) => {
|
return (width, height, widthSegments = 1, heightSegments = 1) => {
|
||||||
this.geo = new THREE.PlaneGeometry(width, height, widthSegments, heightSegments);
|
this.geo = new THREE.PlaneGeometry(width, height, widthSegments, heightSegments);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if(type == 'sphere') {
|
if(type === 'sphere') {
|
||||||
return (radius, widthSegments = 32, heightSegments = 32) => {
|
return (radius, widthSegments = 32, heightSegments = 32) => {
|
||||||
this.geo = new THREE.SphereGeometry(radius, widthSegments, heightSegments);
|
this.geo = new THREE.SphereGeometry(radius, widthSegments, heightSegments);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue