diff options
author | Ananya Sen | 2012-02-23 13:43:35 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-23 13:43:35 -0800 |
commit | 7283884c39df537694b21419a3ea9e3ca7793b4b (patch) | |
tree | bd48aebcfdb2ba36721360a47c1654f22b9f75b6 /js/helper-classes/3D/snap-manager.js | |
parent | dbf0ca5637a3bca87c21c65ada47f8a4d794f78c (diff) | |
download | ninja-7283884c39df537694b21419a3ea9e3ca7793b4b.tar.gz |
switch html document - re-initialize draw-utils and snap-manager on opening a document and while switching documents
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/helper-classes/3D/snap-manager.js')
-rwxr-xr-x | js/helper-classes/3D/snap-manager.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 0a950658..45a178ce 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js | |||
@@ -1087,6 +1087,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { | |||
1087 | 1087 | ||
1088 | // we need to check the orientation of the bounds | 1088 | // we need to check the orientation of the bounds |
1089 | var nrm = MathUtils.getNormalFromBounds3D( bounds3D ); | 1089 | var nrm = MathUtils.getNormalFromBounds3D( bounds3D ); |
1090 | if (MathUtils.fpSign(nrm[2]) == 0) return null; | ||
1090 | var zNrm = nrm[2]; | 1091 | var zNrm = nrm[2]; |
1091 | var dist; | 1092 | var dist; |
1092 | 1093 | ||