diff options
author | Valerio Virgillito | 2012-05-08 17:32:57 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-08 17:32:57 -0700 |
commit | dd7a68b7c35c19932760e5cae87fd1d232a4cff1 (patch) | |
tree | 9f2962e16881a608251e067c85eb3a60109a7384 /js/helper-classes/3D/snap-manager.js | |
parent | cb9e4b68b307f3bbc898fd482eb2668120cd4d18 (diff) | |
parent | d220c02e246b30509b28a47fa04916ca2b8122e4 (diff) | |
download | ninja-dd7a68b7c35c19932760e5cae87fd1d232a4cff1.tar.gz |
Merge branch 'refs/heads/master' into dom-architecture
Diffstat (limited to 'js/helper-classes/3D/snap-manager.js')
-rwxr-xr-x | js/helper-classes/3D/snap-manager.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 31e3e540..5a36e367 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js | |||
@@ -1949,6 +1949,8 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { | |||
1949 | var localPt = hitRec.getLocalPoint(); | 1949 | var localPt = hitRec.getLocalPoint(); |
1950 | var planeMat = hitRec.getPlaneMatrix(); | 1950 | var planeMat = hitRec.getPlaneMatrix(); |
1951 | var stageWorldPt; | 1951 | var stageWorldPt; |
1952 | |||
1953 | /* | ||
1952 | if(inGlobalMode) | 1954 | if(inGlobalMode) |
1953 | { | 1955 | { |
1954 | stageWorldPt = MathUtils.transformPoint(localPt,planeMat); | 1956 | stageWorldPt = MathUtils.transformPoint(localPt,planeMat); |
@@ -1957,6 +1959,8 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { | |||
1957 | { | 1959 | { |
1958 | stageWorldPt = viewUtils.postViewToStageWorld( MathUtils.transformPoint(localPt,planeMat), elt ); | 1960 | stageWorldPt = viewUtils.postViewToStageWorld( MathUtils.transformPoint(localPt,planeMat), elt ); |
1959 | } | 1961 | } |
1962 | */ | ||
1963 | stageWorldPt = viewUtils.postViewToStageWorld( MathUtils.transformPoint(localPt,planeMat), elt ); | ||
1960 | 1964 | ||
1961 | /* | 1965 | /* |
1962 | // get a working plane parallel to the current working plane through the stage world point | 1966 | // get a working plane parallel to the current working plane through the stage world point |