add cursor visibility mode

This commit is contained in:
2019-11-21 10:22:48 +01:00
parent 7b63e5d2ce
commit b26a814208
8 changed files with 61 additions and 11 deletions

View File

@@ -159,9 +159,10 @@ void CanvasModePen::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
else
{
App::I->render_task_async([loc, pr = me->m_pressure]
{
Canvas::I->stroke_start({ loc, 0 }, pr);
});
{
Canvas::I->stroke_start({ loc, 0 }, pr);
});
m_drawing = true;
}
m_dragging = true;
node->mouse_capture();
@@ -184,6 +185,7 @@ void CanvasModePen::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
App::I->brush_update(true, false);
Canvas::I->pick_end();
}
m_drawing = false;
m_dragging = false;
m_picking = false;
break;