--- a/src/ui/canvas.h Wed Feb 26 22:26:05 2020 +0200 +++ b/src/ui/canvas.h Thu Feb 27 11:56:41 2020 +0200 @@ -16,11 +16,13 @@ void mouseMoveEvent(QMouseEvent* event) override; void mousePressEvent(QMouseEvent* event) override; void mouseReleaseEvent(QMouseEvent* event) override; + void paintGL() override; signals: void newStatusText(const QString& newStatusText); void selectionChanged(const QSet<ldraw::Id>& newSelection); private: QPoint lastMousePosition; + std::optional<glm::vec3> worldPosition; int totalMouseMove = 0; QSet<ldraw::Id> selection; };