From fc4d1f8c8719437cc3a1cafa47c1a4903c15bee7 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Tue, 10 Feb 2015 13:09:10 -0500 Subject: [PATCH] scale bugfix --- js/fea/DmaCell.js | 2 +- js/fea/DmaPart.js | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/js/fea/DmaCell.js b/js/fea/DmaCell.js index 7ffd3853..832589f9 100644 --- a/js/fea/DmaCell.js +++ b/js/fea/DmaCell.js @@ -65,7 +65,7 @@ DMACell.prototype.updateForScale = function(scale){ }; DMACell.prototype.getScale = function(){//need for part relay - return this.lattice.getScale(); + return this.lattice.get("scale"); }; DMACell.prototype.getPosition = function(){//need for part relay diff --git a/js/fea/DmaPart.js b/js/fea/DmaPart.js index b3d52adc..34e02bfa 100644 --- a/js/fea/DmaPart.js +++ b/js/fea/DmaPart.js @@ -33,13 +33,6 @@ mesh.position.z = position.z; }; - DMAPart.prototype.updateForScale = function(scale, position){ - if (this.mesh) { - this.mesh.scale.set(scale, scale, scale); - this._setMeshPosition(position); - } - }; - DMAPart.prototype.show = function(){ if (!this.mesh) this._draw(); this.mesh.visible = true; -- GitLab