Transform: Disable snap to plane-face intersection
This feature was added in D5608. But in practice this confuses more than it helps. This fixes T82386.
This commit is contained in:
parent
331614e09b
commit
eb21222e64
Notes:
blender-bot
2023-02-14 08:10:06 +01:00
Referenced by issue #82386, Snap + Axis lock gives unexpected results
|
@ -284,7 +284,7 @@ static void constraint_snap_plane_to_edge(const TransInfo *t, const float plane[
|
|||
* Snap to the nearest point between the snap point and the line that
|
||||
* intersects the face plane with the constraint plane.
|
||||
*/
|
||||
static void constraint_snap_plane_to_face(const TransInfo *t, const float plane[4], float r_out[3])
|
||||
static void UNUSED_FUNCTION(constraint_snap_plane_to_face(const TransInfo *t, const float plane[4], float r_out[3]))
|
||||
{
|
||||
float face_plane[4], isect_orig[3], isect_dir[3];
|
||||
const float *face_snap_point = t->tsnap.snapPoint;
|
||||
|
@ -406,7 +406,8 @@ static void applyAxisConstraintVec(
|
|||
constraint_snap_plane_to_edge(t, plane, out);
|
||||
}
|
||||
else if (is_snap_to_face) {
|
||||
constraint_snap_plane_to_face(t, plane, out);
|
||||
/* Disabled, as it has not proven to be really useful. (See T82386). */
|
||||
// constraint_snap_plane_to_face(t, plane, out);
|
||||
}
|
||||
else {
|
||||
/* View alignment correction. */
|
||||
|
|
Loading…
Reference in New Issue