Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 15:18:44 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 15:19:05 +0300
commitf855e2e06e19ec19b49d9084825202bc4e654f62 (patch)
tree41914da870cbcd3e17f35118599486c3034c1a3d /source/blender/editors/space_view3d/view3d_cursor_snap.c
parent40180c3500a8226d1ef3a9a55af9fda2f079f185 (diff)
Cleanup: unused function
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_cursor_snap.c11
1 files changed, 1 insertions, 10 deletions
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;
}