diff --git a/src/js/app/helpers/geometry.js b/src/js/app/helpers/geometry.js index 2c514b9..7814ca1 100644 --- a/src/js/app/helpers/geometry.js +++ b/src/js/app/helpers/geometry.js @@ -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); };