diff -r 121a40d5e34c -r 8e1c9f18ae15 src/ui/canvas.h --- a/src/ui/canvas.h Tue Jul 27 13:23:34 2021 +0300 +++ b/src/ui/canvas.h Tue Jul 27 16:29:00 2021 +0300 @@ -5,6 +5,7 @@ #include "gl/partrenderer.h" #include "gl/gridprogram.h" #include "gl/axesprogram.h" +#include "gl/vertexprogram.h" class Canvas : public PartRenderer { @@ -24,6 +25,7 @@ const std::optional& getWorldPosition() const; public Q_SLOTS: void handleSelectionChange(const QSet& selectedIds, const QSet& deselectedIds); + void rebuildVertices(Document *document); protected: void mouseMoveEvent(QMouseEvent* event) override; void mousePressEvent(QMouseEvent* event) override; @@ -41,6 +43,7 @@ bool isGridPerpendicularToScreen(float threshold) const; std::optional gridProgram; std::optional axesProgram; + std::optional vertexProgram; std::optional worldPosition; glm::mat4 gridMatrix; geom::Plane gridPlane;