TechDraw - Undo for Cosmetics Vertices and Lines

This commit is contained in:
Tomas Pavlicek
2021-06-28 15:37:23 +02:00
committed by Bernd Hahnebach
parent c6697bbc78
commit 4edf18a630
4 changed files with 22 additions and 1 deletions

View File

@@ -203,6 +203,8 @@ void TaskCosmeticLine::setUiEdit()
//******************************************************************************
void TaskCosmeticLine::createCosmeticLine(void)
{
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Cosmetic Line"));
double x = ui->qsbx1->value().getValue();
double y = ui->qsby1->value().getValue();
double z = ui->qsbz1->value().getValue();
@@ -227,6 +229,8 @@ void TaskCosmeticLine::createCosmeticLine(void)
m_tag = m_partFeat->addCosmeticEdge(p0, p1);
m_ce = m_partFeat->getCosmeticEdge(m_tag);
Gui::Command::commitCommand();
}
void TaskCosmeticLine::updateCosmeticLine(void)