feat: Hide sketch grid when saving a sketch
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -155,6 +155,7 @@ void MainWindow::createSketch()
|
||||
|
||||
void MainWindow::saveSketch()
|
||||
{
|
||||
m_viewport->saveSketch();
|
||||
m_tabWidget->removeTab(m_tabWidget->indexOf(m_sketchTab));
|
||||
m_tabWidget->addTab(m_solidTab, "SOLID");
|
||||
m_tabWidget->addTab(m_surfaceTab, "SURFACE");
|
||||
|
||||
@@ -147,6 +147,12 @@ void ViewportWidget::startSketch(SketchPlane plane)
|
||||
update();
|
||||
}
|
||||
|
||||
void ViewportWidget::saveSketch()
|
||||
{
|
||||
m_currentPlane = SketchPlane::NONE;
|
||||
update();
|
||||
}
|
||||
|
||||
QVector3D ViewportWidget::project(const QVector3D& worldCoord, const QMatrix4x4& modelView, const QMatrix4x4& projection, const QRect& viewport)
|
||||
{
|
||||
QVector4D clipCoord = projection * modelView * QVector4D(worldCoord, 1.0);
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
~ViewportWidget();
|
||||
|
||||
void startSketch(SketchPlane plane);
|
||||
void saveSketch();
|
||||
void setDocument(Document* document);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user