Set to triple equals

This commit is contained in:
Paul Graffam 2018-02-25 19:27:55 -05:00
parent 0cf0430a5d
commit 4b584783d7
1 changed files with 2 additions and 2 deletions

View File

@ -12,13 +12,13 @@ export default class Geometry {
}
make(type) {
if(type == 'plane') {
if(type === 'plane') {
return (width, height, widthSegments = 1, heightSegments = 1) => {
this.geo = new THREE.PlaneGeometry(width, height, widthSegments, heightSegments);
};
}
if(type == 'sphere') {
if(type === 'sphere') {
return (radius, widthSegments = 32, heightSegments = 32) => {
this.geo = new THREE.SphereGeometry(radius, widthSegments, heightSegments);
};