Fix #138439: Eraser/stabilizer brush cursor drawing correction

Correct small Eraser/stabilizer brush cursor drawing issues introduced
by typos in 7d97ba4c5f.

Pull Request: https://projects.blender.org/blender/blender/pulls/138443
This commit is contained in:
YimingWu
2025-05-06 09:32:02 +02:00
committed by YimingWu
parent 6ba9d4b21f
commit 2d1904d957
2 changed files with 2 additions and 2 deletions

View File

@@ -1748,8 +1748,8 @@ static void annotation_draw_eraser(bContext * /*C*/,
immUniform1f("udash_factor", 0.5f);
imm_draw_circle_wire_2d(shdr_pos,
xy.y,
xy.x,
xy.y,
p->radius,
/* XXX Dashed shader gives bad results with sets of small segments
* currently, temp hack around the issue. :( */

View File

@@ -161,7 +161,7 @@ static void paint_draw_smooth_cursor(bContext *C,
immUniformColor4ubv(paint->paint_cursor_col);
immBegin(GPU_PRIM_LINES, 2);
immVertex2iv(pos, xy);
immVertex2fv(pos, blender::float2(xy));
immVertex2f(pos,
stroke->last_mouse_position[0] + region->winrct.xmin,
stroke->last_mouse_position[1] + region->winrct.ymin);