From f855e2e06e19ec19b49d9084825202bc4e654f62 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 20 Oct 2021 09:18:44 -0300 Subject: Cleanup: unused function --- source/blender/editors/space_view3d/view3d_cursor_snap.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c') diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c index 9bbd90d2db6..b3e010bb938 100644 --- a/source/blender/editors/space_view3d/view3d_cursor_snap.c +++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c @@ -856,16 +856,7 @@ static void v3d_cursor_snap_activate(void) RNA_enum_value_from_id(data_intern->keymap->modal_items, "SNAP_ON", &data_intern->snap_on); #endif V3DSnapCursorState *state_default = &data_intern->state_default; - state_default->prevpoint = NULL; - state_default->snap_elem_force = (SCE_SNAP_MODE_VERTEX | SCE_SNAP_MODE_EDGE | - SCE_SNAP_MODE_FACE | SCE_SNAP_MODE_EDGE_PERPENDICULAR | - SCE_SNAP_MODE_EDGE_MIDPOINT); - state_default->plane_axis = 2; - rgba_uchar_args_set(state_default->color_point, 255, 255, 255, 255); - UI_GetThemeColor3ubv(TH_TRANSFORM, state_default->color_line); - state_default->color_line[3] = 128; - state_default->draw_point = true; - state_default->draw_plane = false; + v3d_cursor_snap_state_init(state_default); data_intern->is_initiated = true; } -- cgit v1.2.3