feat: Update SketchGrid to use shaders and re-enable drawing
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -108,15 +108,15 @@ void ViewportWidget::paintGL()
|
||||
|
||||
QOpenGLVertexArrayObject::Binder vaoBinder(&m_vao);
|
||||
|
||||
// Sketch grid rendering - temporarily disabled as it uses the fixed-function pipeline
|
||||
// if (m_isSelectingPlane) {
|
||||
// if (m_highlightedPlane != SketchPlane::NONE) {
|
||||
// m_sketchGrid->paintGL(static_cast<SketchGrid::SketchPlane>(m_highlightedPlane), projection, model);
|
||||
// }
|
||||
// }
|
||||
// if (m_currentPlane != SketchPlane::NONE) {
|
||||
// m_sketchGrid->paintGL(static_cast<SketchGrid::SketchPlane>(m_currentPlane), projection, model);
|
||||
// }
|
||||
// Sketch grid rendering
|
||||
if (m_isSelectingPlane) {
|
||||
if (m_highlightedPlane != SketchPlane::NONE) {
|
||||
m_sketchGrid->paintGL(static_cast<SketchGrid::SketchPlane>(m_highlightedPlane), m_shaderProgram, m_colorLoc);
|
||||
}
|
||||
}
|
||||
if (m_currentPlane != SketchPlane::NONE) {
|
||||
m_sketchGrid->paintGL(static_cast<SketchGrid::SketchPlane>(m_currentPlane), m_shaderProgram, m_colorLoc);
|
||||
}
|
||||
|
||||
if (m_isSelectingPlane) {
|
||||
drawSelectionPlanes();
|
||||
|
||||
Reference in New Issue
Block a user