From 5643b6a559cbc88af2692ecc9072847bbe66741c Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Mon, 21 Sep 2015 21:39:21 +0530 Subject: [PATCH] Removed deprecated THREE.CubeGeometry in favor of THREE.BoxGeometry --- meteor/app/client/globe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/app/client/globe.js b/meteor/app/client/globe.js index aeb6b7337..335ddd625 100644 --- a/meteor/app/client/globe.js +++ b/meteor/app/client/globe.js @@ -138,7 +138,7 @@ if (Meteor.isClient) { mesh.scale.set( 1.1, 1.1, 1.1 ); scene.add(mesh); - geometry = new THREE.CubeGeometry(0.75, 0.75, 1); + geometry = new THREE.BoxGeometry(0.75, 0.75, 1); geometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-0.5)); point = new THREE.Mesh(geometry); @@ -227,7 +227,7 @@ if (Meteor.isClient) { var phi = (90 - lat) * Math.PI / 180; var theta = (180 - lng) * Math.PI / 180; - var geometry = new THREE.CubeGeometry(0.75, 0.75, 1); + var geometry = new THREE.BoxGeometry(0.75, 0.75, 1); geometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-0.5)); var mypoint = new THREE.Mesh(geometry);