Show wireframe by default
Toggle wireframe would cause crash on linux/MesaGL, only show wireframes on Windows and MacOS by default.master
parent
14b65e193b
commit
3ebc2cca6b
|
@ -305,8 +305,11 @@ DocumentWindow::DocumentWindow() :
|
||||||
m_modelRenderWidget->setMinimumSize(DocumentWindow::m_modelRenderWidgetInitialSize, DocumentWindow::m_modelRenderWidgetInitialSize);
|
m_modelRenderWidget->setMinimumSize(DocumentWindow::m_modelRenderWidgetInitialSize, DocumentWindow::m_modelRenderWidgetInitialSize);
|
||||||
m_modelRenderWidget->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
m_modelRenderWidget->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||||
m_modelRenderWidget->move(DocumentWindow::m_modelRenderWidgetInitialX, DocumentWindow::m_modelRenderWidgetInitialY);
|
m_modelRenderWidget->move(DocumentWindow::m_modelRenderWidgetInitialX, DocumentWindow::m_modelRenderWidgetInitialY);
|
||||||
|
|
||||||
m_modelRenderWidget->setMousePickRadius(m_document->mousePickRadius());
|
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,
|
connect(m_modelRenderWidget, &ModelWidget::mouseRayChanged, m_document,
|
||||||
[=](const QVector3D &nearPosition, const QVector3D &farPosition) {
|
[=](const QVector3D &nearPosition, const QVector3D &farPosition) {
|
||||||
|
|
Loading…
Reference in New Issue