# HG changeset patch # User Teemu Piippo # Date 1631907533 -10800 # Node ID f2d78b30f2a9db519f5eaae76e615985d2355ce0 # Parent f35843351601b45492b571d7e711546208c02f59 Add missing changes to canvas.h diff -r f35843351601 -r f2d78b30f2a9 src/ui/canvas.h --- a/src/ui/canvas.h Sun Sep 12 13:50:28 2021 +0300 +++ b/src/ui/canvas.h Fri Sep 17 22:38:53 2021 +0300 @@ -23,7 +23,7 @@ void drawWorldPoint(QPainter* painter, const glm::vec3& worldPoint) const; void drawWorldPolygon(QPainter* painter, const std::vector& points); const std::optional& getWorldPosition() const; - void adjustGrid(); + void adjustGridToView(); public Q_SLOTS: void handleSelectionChange(const QSet& selectedIds, const QSet& deselectedIds); void rebuildVertices(Document *document); @@ -39,7 +39,7 @@ void mouseClick(Canvas* canvas, QMouseEvent* event); void mouseMove(Canvas* canvas, QMouseEvent* event); private: - void updateGridMatrix(); + void setGridMatrix(const glm::mat4 &newMatrix); glm::vec3 cameraVector() const; bool isGridPerpendicularToScreen(float threshold) const; std::optional gridProgram;