diff options
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 |