aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
authorhwc4872012-04-17 09:45:57 -0700
committerhwc4872012-04-17 09:45:57 -0700
commitd6d72e8f519f3eb69374eb233149d3dfde2e5558 (patch)
tree7a3d32d1e7d9d15f6dafdde7acf06c8167b9c07d /js/helper-classes
parent19115d65a309ccbeab8e07d426ac398dae8a9d68 (diff)
downloadninja-d6d72e8f519f3eb69374eb233149d3dfde2e5558.tar.gz
Allow snapping to unselected objects
Diffstat (limited to 'js/helper-classes')
-rwxr-xr-xjs/helper-classes/3D/snap-manager.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js
index 14a621d0..cd8cc102 100755
--- a/js/helper-classes/3D/snap-manager.js
+++ b/js/helper-classes/3D/snap-manager.js
@@ -1088,15 +1088,6 @@ var SnapManager = exports.SnapManager = Montage.create(Component, {
1088 localPt = MathUtils.transformPoint( localPt, inv ); 1088 localPt = MathUtils.transformPoint( localPt, inv );
1089 var hitContained = false; 1089 var hitContained = false;
1090 hitContained = this.snapToContainedElements( hitRec, localPt, globalScrPt ); 1090 hitContained = this.snapToContainedElements( hitRec, localPt, globalScrPt );
1091
1092 // disable snapping to element bounds when the object isnot selected
1093 if (!hitContained && !this.application.ninja.selectionController.isObjectSelected(elt))
1094 {
1095 if ((hitRec.getType() == hitRec.SNAP_TYPE_ELEMENT_EDGE) ||
1096 (hitRec.getType() == hitRec.SNAP_TYPE_ELEMENT_VERTEX) ||
1097 (hitRec.getType() == hitRec.SNAP_TYPE_ELEMENT))
1098 hitRec = null;
1099 }
1100 } 1091 }
1101 1092
1102 return hitRec; 1093 return hitRec;