diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index f17e8691..3e400f43 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -560,11 +560,11 @@ DocumentWindow::DocumentWindow() : }); m_viewMenu->addAction(m_resetModelWidgetPosAction); - //m_toggleWireframeAction = new QAction(tr("Toggle Wireframe"), this); - //connect(m_toggleWireframeAction, &QAction::triggered, [=]() { - // m_modelRenderWidget->toggleWireframe(); - //}); - //m_viewMenu->addAction(m_toggleWireframeAction); + m_toggleWireframeAction = new QAction(tr("Toggle Wireframe"), this); + connect(m_toggleWireframeAction, &QAction::triggered, [=]() { + m_modelRenderWidget->toggleWireframe(); + }); + m_viewMenu->addAction(m_toggleWireframeAction); //m_toggleSmoothNormalAction = new QAction(tr("Toggle Smooth Normal"), this); //connect(m_toggleSmoothNormalAction, &QAction::triggered, [=]() { diff --git a/src/meshloader.cpp b/src/meshloader.cpp index 0ca7dd2e..d8dab45b 100644 --- a/src/meshloader.cpp +++ b/src/meshloader.cpp @@ -147,7 +147,6 @@ MeshLoader::MeshLoader(Outcome &outcome) : } // Uncomment out to show wireframes - /* size_t edgeCount = 0; for (const auto &face: outcome.triangleAndQuads) { edgeCount += face.size(); @@ -175,7 +174,6 @@ MeshLoader::MeshLoader(Outcome &outcome) : } } } - */ } MeshLoader::MeshLoader() : diff --git a/src/modelmeshbinder.cpp b/src/modelmeshbinder.cpp index 67b4356e..15578a7d 100644 --- a/src/modelmeshbinder.cpp +++ b/src/modelmeshbinder.cpp @@ -14,7 +14,7 @@ ModelMeshBinder::ModelMeshBinder() : m_renderTriangleVertexCount(0), m_renderEdgeVertexCount(0), m_newMeshComing(false), - m_showWireframes(true), + m_showWireframes(false), m_hasTexture(false), m_texture(nullptr), m_hasNormalMap(false),