Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_3d.c
| Show First 20 Lines • Show All 1,561 Lines • ▼ Show 20 Lines | if (ED_transform_calc_gizmo_stats(C, | ||||
| &(struct TransformCalcParams){ | &(struct TransformCalcParams){ | ||||
| .use_only_center = true, | .use_only_center = true, | ||||
| }, | }, | ||||
| &tbounds)) { | &tbounds)) { | ||||
| gizmo_prepare_mat(C, rv3d, &tbounds); | gizmo_prepare_mat(C, rv3d, &tbounds); | ||||
| WM_gizmo_set_matrix_location(widget, rv3d->twmat[3]); | WM_gizmo_set_matrix_location(widget, rv3d->twmat[3]); | ||||
| } | } | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw_editor_overlays(ar); | ||||
| return OPERATOR_RUNNING_MODAL; | return OPERATOR_RUNNING_MODAL; | ||||
| } | } | ||||
| static void gizmogroup_init_properties_from_twtype(wmGizmoGroup *gzgroup) | static void gizmogroup_init_properties_from_twtype(wmGizmoGroup *gzgroup) | ||||
| { | { | ||||
| struct { | struct { | ||||
| wmOperatorType *translate, *rotate, *trackball, *resize; | wmOperatorType *translate, *rotate, *trackball, *resize; | ||||
| ▲ Show 20 Lines • Show All 971 Lines • Show Last 20 Lines | |||||