Fix #130813: Grease Pencil: Skip stabilize stroke line drawing when cursor is hidden
When cursor is disabled, exit early from the cursor draw function of stabilize stroke to skip drawing of "smooth line". Pull Request: https://projects.blender.org/blender/blender/pulls/130884
This commit is contained in:
committed by
Pratik Borhade
parent
b0c0c2708d
commit
6678b0acfb
@@ -132,6 +132,11 @@ static void paint_draw_smooth_cursor(bContext *C, const int x, const int y, void
|
||||
const Paint *paint = BKE_paint_get_active_from_context(C);
|
||||
const Brush *brush = BKE_paint_brush_for_read(paint);
|
||||
PaintStroke *stroke = static_cast<PaintStroke *>(customdata);
|
||||
const PaintMode mode = BKE_paintmode_get_active_from_context(C);
|
||||
|
||||
if ((mode == PaintMode::GPencil) && (paint->flags & PAINT_SHOW_BRUSH) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (stroke && brush) {
|
||||
GPU_line_smooth(true);
|
||||
|
||||
Reference in New Issue
Block a user