diff options
author | Jose Antonio Marquez | 2012-03-06 17:02:44 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-06 17:02:44 -0800 |
commit | fca92904597895675ddd216399cd235f3c5a7cfa (patch) | |
tree | 77c30a958c0283a6aa208b93640c6008eeb943e2 /js/helper-classes/3D/snap-2d-record.js | |
parent | ec7cbc95de031d2be667c2a8629a9d63e91f7e1a (diff) | |
parent | eebb7de4d19cddec9c763a073d8cf41d76fe70f7 (diff) | |
download | ninja-fca92904597895675ddd216399cd235f3c5a7cfa.tar.gz |
Merge branch 'refs/heads/FileIO' into FileIO-Build-Candidate
Diffstat (limited to 'js/helper-classes/3D/snap-2d-record.js')
-rwxr-xr-x | js/helper-classes/3D/snap-2d-record.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js index c77b28b3..844bb3be 100755 --- a/js/helper-classes/3D/snap-2d-record.js +++ b/js/helper-classes/3D/snap-2d-record.js | |||
@@ -78,7 +78,7 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, | |||
78 | 78 | ||
79 | // add the center point | 79 | // add the center point |
80 | var xCtr = 0.5*(bounds[0][0] + bounds[3][0]), yCtr = 0.5*(bounds[0][1] + bounds[1][1]); | 80 | var xCtr = 0.5*(bounds[0][0] + bounds[3][0]), yCtr = 0.5*(bounds[0][1] + bounds[1][1]); |
81 | var ctr = Vector.create( [xCtr, yCtr, 0] ); | 81 | var ctr = [xCtr, yCtr, 0]; |
82 | this._screenPtArray[4] = viewUtils.localToGlobal( ctr, elt ); | 82 | this._screenPtArray[4] = viewUtils.localToGlobal( ctr, elt ); |
83 | var worldPt = viewUtils.localToStageWorld( ctr, elt ); | 83 | var worldPt = viewUtils.localToStageWorld( ctr, elt ); |
84 | this._alignPtArray[4] = MathUtils.transformPoint( worldPt, snapManager.SnapManager._worldToDragPlane ); | 84 | this._alignPtArray[4] = MathUtils.transformPoint( worldPt, snapManager.SnapManager._worldToDragPlane ); |