implemented brush settings switch between pen/erase

This commit is contained in:
2017-09-28 22:30:47 +01:00
parent b4b9cf2a7c
commit 763e446cc5
7 changed files with 44 additions and 10 deletions

View File

@@ -139,8 +139,16 @@ void CanvasModePen::leave()
void CanvasModePen::enter()
{
if (node)
if (m_valid_brush)
{
node->m_brush = m_brush;
App::I.brush_update();
}
else
{
m_brush = node->m_brush;
m_valid_brush = true;
}
}
////////////////////////////////////////////////////////////////////