Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_snap_object.c
| Show First 20 Lines • Show All 1,980 Lines • ▼ Show 20 Lines | else if (snapdata->snap_to != SCE_SNAP_MODE_FACE) { | ||||
| } | } | ||||
| else if (ob->type == OB_EMPTY) { | else if (ob->type == OB_EMPTY) { | ||||
| retval = snapEmpty( | retval = snapEmpty( | ||||
| snapdata, | snapdata, | ||||
| ob, obmat, | ob, obmat, | ||||
| ray_depth, dist_px, | ray_depth, dist_px, | ||||
| r_loc, r_no); | r_loc, r_no); | ||||
| } | } | ||||
| else if (ob->type == OB_GPENCIL) { | |||||
| retval = snapEmpty( | |||||
| snapdata, | |||||
| ob, obmat, | |||||
| ray_depth, dist_px, | |||||
| r_loc, r_no); | |||||
| } | |||||
| else if (ob->type == OB_CAMERA) { | else if (ob->type == OB_CAMERA) { | ||||
| retval = snapCamera( | retval = snapCamera( | ||||
| sctx, snapdata, ob, obmat, | sctx, snapdata, ob, obmat, | ||||
| ray_depth, dist_px, | ray_depth, dist_px, | ||||
| r_loc, r_no); | r_loc, r_no); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines | |||||