Show wireframe by default

Toggle wireframe would cause crash on linux/MesaGL, only show wireframes on Windows and MacOS by default.
master
Jeremy Hu 2020-01-02 08:03:33 +09:30
parent 14b65e193b
commit 3ebc2cca6b
1 changed files with 4 additions and 1 deletions

View File

@ -305,8 +305,11 @@ DocumentWindow::DocumentWindow() :
m_modelRenderWidget->setMinimumSize(DocumentWindow::m_modelRenderWidgetInitialSize, DocumentWindow::m_modelRenderWidgetInitialSize);
m_modelRenderWidget->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
m_modelRenderWidget->move(DocumentWindow::m_modelRenderWidgetInitialX, DocumentWindow::m_modelRenderWidgetInitialY);
m_modelRenderWidget->setMousePickRadius(m_document->mousePickRadius());
#ifndef __linux__
// FIXME: Toggle wireframe crash on linux/MesaGL
m_modelRenderWidget->toggleWireframe();
#endif
connect(m_modelRenderWidget, &ModelWidget::mouseRayChanged, m_document,
[=](const QVector3D &nearPosition, const QVector3D &farPosition) {