From 69e0e90b22ab636f28228380e5a0bb922d745258 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Wed, 24 Jun 2015 18:02:01 -0700 Subject: [PATCH] debugging gik hierarchy --- js/lattice/LatticeBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lattice/LatticeBase.js b/js/lattice/LatticeBase.js index 15b3c4f0..ff648865 100644 --- a/js/lattice/LatticeBase.js +++ b/js/lattice/LatticeBase.js @@ -204,7 +204,7 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre if (cell){ var material = cell.getMaterial(); if (material.dimensions){ - var subCellMax = (new THREE.Vector3(x, y, z)).add(cell.applyAbsoluteRotation(material.dimensions)); + var subCellMax = (new THREE.Vector3(x, y, z)).add(cell.applyAbsoluteRotation(material.dimensions.clone())); dimVector.max(subCellMax); } else if (cell.length){ var subCellMax = (new THREE.Vector3(x, y, z)).add(cell.applyAbsoluteRotation(new THREE.Vector3(cell.length, 1, 1))); -- GitLab