Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Show First 20 Lines • Show All 5,727 Lines • ▼ Show 20 Lines | if (ps_handle->is_clone_cursor_pick) { | ||||
| int mval_i[2] = {(int)pos[0], (int)pos[1]}; | int mval_i[2] = {(int)pos[0], (int)pos[1]}; | ||||
| view3d_operator_needs_opengl(C); | view3d_operator_needs_opengl(C); | ||||
| if (!ED_view3d_autodist(depsgraph, ar, v3d, mval_i, cursor, false, NULL)) { | if (!ED_view3d_autodist(depsgraph, ar, v3d, mval_i, cursor, false, NULL)) { | ||||
| return; | return; | ||||
| } | } | ||||
| DEG_id_tag_update(&scene->id, ID_RECALC_COPY_ON_WRITE); | |||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| return; | return; | ||||
| } | } | ||||
| for (i = 0; i < ps_handle->ps_views_tot; i++) { | for (i = 0; i < ps_handle->ps_views_tot; i++) { | ||||
| ProjPaintState *ps = ps_handle->ps_views[i]; | ProjPaintState *ps = ps_handle->ps_views[i]; | ||||
| paint_proj_stroke_ps(C, ps_handle_p, prev_pos, pos, eraser, pressure, distance, size, ps); | paint_proj_stroke_ps(C, ps_handle_p, prev_pos, pos, eraser, pressure, distance, size, ps); | ||||
| ▲ Show 20 Lines • Show All 1,019 Lines • Show Last 20 Lines | |||||