aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/draw-utils.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-02 14:53:14 -0800
committerNivesh Rajbhandari2012-02-02 15:02:53 -0800
commitd41dee0c552a30724a146965ae4272a268777fc5 (patch)
tree16ab92866c1ced1185e24147b1cd1b89594a9e93 /js/helper-classes/3D/draw-utils.js
parent7534bd7acc822dea641b1547cd955801920055aa (diff)
downloadninja-d41dee0c552a30724a146965ae4272a268777fc5.tar.gz
Integrating Pan and Zoom tool and snap manager fixes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/3D/draw-utils.js')
-rw-r--r--js/helper-classes/3D/draw-utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index c26a5cd1..fd96af4d 100644
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -1089,7 +1089,8 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
1089 var resMat = glmat4.multiply( tMat, mat, [] ); 1089 var resMat = glmat4.multiply( tMat, mat, [] );
1090 var origin = [0,0,0,1]; 1090 var origin = [0,0,0,1];
1091 1091
1092 var arrowSize = 50; 1092 var zoomFactor = this.application.ninja.documentBar.zoomFactor/100.0;
1093 var arrowSize = 50 / zoomFactor;
1093 var xAxis = [arrowSize,0,0,1]; 1094 var xAxis = [arrowSize,0,0,1];
1094 //var rO = resMat.multiply(origin); 1095 //var rO = resMat.multiply(origin);
1095 var rO = glmat4.multiplyVec3( resMat, origin, []); 1096 var rO = glmat4.multiplyVec3( resMat, origin, []);