diff --git a/src/tools/brush.c b/src/tools/brush.c index 7d3465be1..13ab4dd5a 100644 --- a/src/tools/brush.c +++ b/src/tools/brush.c @@ -179,6 +179,10 @@ static int on_hover(gesture3d_t *gest) return 0; } + // Update snap offset in case we press 'space'. + gest->snap_offset = goxel.snap_offset * goxel.tool_radius + + ((painter->mode == MODE_OVER) ? 0.5 : -0.5); + if (shift) render_line(&goxel.rend, brush->start_pos, gest->pos, NULL, 0);