using the mouse MidButton on a vertex will now clear it (white color and "Unknown" selection value)

This commit is contained in:
Paolo Cignoni cignoni 2008-01-09 00:31:22 +00:00
parent 187daf1dfb
commit 08aea29ffa

View File

@ -382,10 +382,14 @@ void EditSegment::Decorate(QAction * ac, MeshModel & m, GLArea * gla) {
meshCut->Mark(*vi, iF);
(*vi)->C()
= toVcgColor(meshCutDialog->getForegroundColor());
} else {
} else if (mouse_button_pressed==Qt::RightButton ){
meshCut->Mark(*vi, iB);
(*vi)->C()
= toVcgColor(meshCutDialog->getBackgroundColor());
} else if (mouse_button_pressed==Qt::MidButton) {
meshCut->Mark(*vi, U);
(*vi)->C()
= toVcgColor(Qt::white);
}
}