Sculpt Expand: Render the origin of expand as part of the cursor

This commit is contained in:
Pablo Dobarro 2021-02-14 17:45:30 +01:00
parent e45986291d
commit 30434e3904
1 changed files with 10 additions and 0 deletions

View File

@ -1626,6 +1626,16 @@ static void paint_cursor_draw_3d_view_brush_cursor_inactive(PaintCursorContext *
paint_cursor_pose_brush_origins_draw(pcontext);
}
/* Expand operation origin. */
if (pcontext->ss->expand_cache) {
cursor_draw_point_screen_space(
pcontext->pos,
pcontext->region,
SCULPT_vertex_co_get(pcontext->ss, pcontext->ss->expand_cache->initial_active_vertex),
pcontext->vc.obact->obmat,
2);
}
if (brush->sculpt_tool == SCULPT_TOOL_BOUNDARY) {
paint_cursor_preview_boundary_data_update(pcontext, update_previews);
paint_cursor_preview_boundary_data_pivot_draw(pcontext);