implemented brush settings switch between pen/erase
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user