--- a/src/editmodes/abstractEditMode.cpp Mon Aug 31 23:36:08 2015 +0300 +++ b/src/editmodes/abstractEditMode.cpp Sat Sep 05 23:03:24 2015 +0300 @@ -62,16 +62,9 @@ AbstractEditMode (renderer), m_polybrush (QBrush (QColor (64, 192, 0, 128))) { - // Disable the context menu - we need the right mouse button - // for removing vertices. - renderer->setContextMenuPolicy (Qt::NoContextMenu); - - // Use the crosshair cursor when drawing. + renderer->setContextMenuPolicy (Qt::NoContextMenu); // We need the right mouse button for removing vertices renderer->setCursor (Qt::CrossCursor); - - // Clear the selection when beginning to draw. - CurrentDocument()->clearSelection(); - + m_window->currentDocument()->clearSelection(); m_window->updateSelection(); m_drawedVerts.clear(); }