55 ot->
name =
"Center View to Cursor";
56 ot->
description =
"Center the view so that the cursor is in the middle of the view";
57 ot->
idname =
"VIEW3D_OT_view_center_cursor";
MINLINE void negate_v3_v3(float r[3], const float a[3])
int WM_operator_smooth_viewtx_get(const wmOperator *op)
static wmOperatorStatus viewcenter_cursor_exec(bContext *C, wmOperator *op)
bool view3d_location_poll(bContext *C)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
void VIEW3D_OT_view_center_cursor(wmOperatorType *ot)
void ED_view3d_smooth_view_force_finish(bContext *C, View3D *v3d, ARegion *region)
Scene * CTX_data_scene(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
void ED_view3d_smooth_view(bContext *C, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
View3D * CTX_wm_view3d(const bContext *C)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
struct wmOperatorType * type