diff -r 34c6e7bc4ee1 -r c7241f504117 src/main.cpp --- a/src/main.cpp Sun Jun 12 23:59:37 2022 +0300 +++ b/src/main.cpp Mon Jun 13 02:18:25 2022 +0300 @@ -8,6 +8,7 @@ #include "ui_mainwindow.h" #include "version.h" #include "gl/axesprogram.h" +#include "gl/gridprogram.h" #include "gl/partrenderer.h" #include "document.h" #include "settingseditor/settingseditor.h" @@ -41,6 +42,7 @@ std::unique_ptr itemSelectionModel; std::unique_ptr tools; std::unique_ptr axesLayer; + std::unique_ptr gridLayer; Model* model; }; #include "main.moc" @@ -397,9 +399,11 @@ data->canvas = std::make_unique(model, &documents, colorTable); data->itemSelectionModel = std::make_unique(model); data->axesLayer = std::make_unique(); + data->gridLayer = std::make_unique(); data->model = model; data->canvas->addRenderLayer(data->axesLayer.get()); data->canvas->setLayerEnabled(data->axesLayer.get(), settings.drawAxes()); + data->canvas->addRenderLayer(data->gridLayer.get()); documents.setModelPayload(modelId, data); QObject::connect( data->tools.get(),