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:
@@ -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. :( */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user