Blender Git Loki

Git Commits -> Revision d820660

Revision d820660 by Germano Cavalcante (master)
June 18, 2020, 03:01 (GMT)
Transform: Snap to the intersection between constraint and geometry

This commit changes the behavior of 4 snapping combinations:

**1. While constraining to a plane, snap to an edge element:**
The snap is made at the intersection between the edge direction and the
constraint plane.

**2. While constraining to a plane, snap to a face element:**
The snap is made to the nearest point between the snap point and the
line that intersects the face plane with the constraint plane.

**3. While constraining to an axis, snap to an edge/line element:**
The snap is made to the nearest point on the axis to the edge/line.

**4. While constraining to an axis, snap to a face element:**
The snap is made at the intersection of the axis and the plane defined
by the face.

To avoid unpredictable jumps outside view boundaries, an alignment
check is made for each of these snapping combinations.

Resolve/fix T66422

Differential Revision: https://developer.blender.org/D5608

Commit Details:

Full Hash: d8206602feed27088b0b07bfb567f67754ad0359
Parent Commit: 18ccf32
Lines Changed: +140, -33

3 Modified Paths:

/source/blender/blenlib/BLI_math_geom.h (+4, -0) (Diff)
/source/blender/blenlib/intern/math_geom.c (+17, -9) (Diff)
/source/blender/editors/transform/transform_constraints.c (+119, -24) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021