Blender Git Commit Log

Git Commits -> Revision 2e73e13

Revision 2e73e13 by Germano Cavalcante (master)
May 27, 2020, 03:14 (GMT)
Gizmo Library: New Snap Gizmo

Generic snap gizmo to be used for different tools.

The Gizmo can be configured initially by the following properties:
- `"snap_elements_force"`, `"prev_point"`

The following properties can be read as return:
- `"location"`, `"normal"`, `"snap_elem_index"`

This property can be linked to another (tool_setting.snap_elements):
- `"snap_elements"`

And this 3 extra utilities have been added:
- `ED_gizmotypes_snap_3d_draw_util`,
- `ED_gizmotypes_snap_3d_context_get`,
- `ED_gizmotypes_snap_3d_update`.

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

Commit Details:

Full Hash: 2e73e1390e3a87d16fc4016d629253c1228af255
Parent Commit: 7ed7901
Lines Changed: +589, -76

1 Added Path:

/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c (+530, -0) (View)

4 Modified Paths:

/source/blender/editors/gizmo_library/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/include/ED_gizmo_library.h (+28, -2) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/transform/transform_snap.c (+29, -74) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021