=== Transform Snap ===

(Implementing Matt's idea)

Grid and Snap are now exclusively controlled by the Control key (pun intented).

You can switch to Snap by selecting the snap option in the Transform menu (this option is only available in edit mode on a mesh. this option is per 3D view) (NOTE: There is currently no hotkey for that, anyone should feel free to add one).

When Snap is selected, holding down Ctrl during translations (grab) snaps to vertex.

All other situations which have no snapping code yet defaults to Grid.
This commit is contained in:
2006-12-20 19:47:12 +00:00
parent 496410a255
commit 88ef092876
5 changed files with 50 additions and 40 deletions

View File

@@ -494,7 +494,7 @@ void initTrans (TransInfo *t)
t->around = V3D_CENTRE;
setTransformViewMatrices(t);
resetSnapping(t);
initSnapping(t);
}
/* Here I would suggest only TransInfo related issues, like free data & reset vars. Not redraws */