Add wireframe toggle back
parent
8053d3c3fb
commit
4922c669ba
|
@ -560,11 +560,11 @@ DocumentWindow::DocumentWindow() :
|
||||||
});
|
});
|
||||||
m_viewMenu->addAction(m_resetModelWidgetPosAction);
|
m_viewMenu->addAction(m_resetModelWidgetPosAction);
|
||||||
|
|
||||||
//m_toggleWireframeAction = new QAction(tr("Toggle Wireframe"), this);
|
m_toggleWireframeAction = new QAction(tr("Toggle Wireframe"), this);
|
||||||
//connect(m_toggleWireframeAction, &QAction::triggered, [=]() {
|
connect(m_toggleWireframeAction, &QAction::triggered, [=]() {
|
||||||
// m_modelRenderWidget->toggleWireframe();
|
m_modelRenderWidget->toggleWireframe();
|
||||||
//});
|
});
|
||||||
//m_viewMenu->addAction(m_toggleWireframeAction);
|
m_viewMenu->addAction(m_toggleWireframeAction);
|
||||||
|
|
||||||
//m_toggleSmoothNormalAction = new QAction(tr("Toggle Smooth Normal"), this);
|
//m_toggleSmoothNormalAction = new QAction(tr("Toggle Smooth Normal"), this);
|
||||||
//connect(m_toggleSmoothNormalAction, &QAction::triggered, [=]() {
|
//connect(m_toggleSmoothNormalAction, &QAction::triggered, [=]() {
|
||||||
|
|
|
@ -147,7 +147,6 @@ MeshLoader::MeshLoader(Outcome &outcome) :
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uncomment out to show wireframes
|
// Uncomment out to show wireframes
|
||||||
/*
|
|
||||||
size_t edgeCount = 0;
|
size_t edgeCount = 0;
|
||||||
for (const auto &face: outcome.triangleAndQuads) {
|
for (const auto &face: outcome.triangleAndQuads) {
|
||||||
edgeCount += face.size();
|
edgeCount += face.size();
|
||||||
|
@ -175,7 +174,6 @@ MeshLoader::MeshLoader(Outcome &outcome) :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MeshLoader::MeshLoader() :
|
MeshLoader::MeshLoader() :
|
||||||
|
|
|
@ -14,7 +14,7 @@ ModelMeshBinder::ModelMeshBinder() :
|
||||||
m_renderTriangleVertexCount(0),
|
m_renderTriangleVertexCount(0),
|
||||||
m_renderEdgeVertexCount(0),
|
m_renderEdgeVertexCount(0),
|
||||||
m_newMeshComing(false),
|
m_newMeshComing(false),
|
||||||
m_showWireframes(true),
|
m_showWireframes(false),
|
||||||
m_hasTexture(false),
|
m_hasTexture(false),
|
||||||
m_texture(nullptr),
|
m_texture(nullptr),
|
||||||
m_hasNormalMap(false),
|
m_hasNormalMap(false),
|
||||||
|
|
Loading…
Reference in New Issue