Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_snap.c
| Show First 20 Lines • Show All 653 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| float snap_target_global[3]; | float snap_target_global[3]; | ||||
| if (snap_calc_active_center(C, false, snap_target_global) == false) { | if (snap_calc_active_center(C, false, snap_target_global) == false) { | ||||
| BKE_report(op->reports, RPT_ERROR, "No active element found!"); | BKE_report(op->reports, RPT_ERROR, "No active element found!"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (!snap_selected_to_location(C, snap_target_global, -1, false, true)) { | if (!snap_selected_to_location(C, snap_target_global, false, -1, true)) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot) | void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines | |||||