Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_snap_object.c
| Show First 20 Lines • Show All 2,906 Lines • ▼ Show 20 Lines | short ED_transform_snap_object_project_view3d_ex(SnapObjectContext *sctx, | ||||
| float *dist_px, | float *dist_px, | ||||
| float r_loc[3], | float r_loc[3], | ||||
| float r_no[3], | float r_no[3], | ||||
| int *r_index, | int *r_index, | ||||
| Object **r_ob, | Object **r_ob, | ||||
| float r_obmat[4][4]) | float r_obmat[4][4]) | ||||
| { | { | ||||
| return transform_snap_context_project_view3d_mixed_impl( | return transform_snap_context_project_view3d_mixed_impl( | ||||
| sctx, snap_to, params, mval, prev_co, dist_px, r_loc, r_no, r_index, r_ob, r_obmat) != | sctx, snap_to, params, mval, prev_co, dist_px, r_loc, r_no, r_index, r_ob, r_obmat); | ||||
| 0; | |||||
| } | } | ||||
| /** | /** | ||||
| * Convenience function for performing snapping. | * Convenience function for performing snapping. | ||||
| * | * | ||||
| * Given a 2D region value, snap to vert/edge/face. | * Given a 2D region value, snap to vert/edge/face. | ||||
| * | * | ||||
| * \param sctx: Snap context. | * \param sctx: Snap context. | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||