src/ui/canvas.cpp

changeset 206
654661eab7f3
parent 205
1a4342d80de7
child 214
8e1fe64ce4e3
--- a/src/ui/canvas.cpp	Wed Jun 08 20:41:21 2022 +0300
+++ b/src/ui/canvas.cpp	Wed Jun 08 22:29:44 2022 +0300
@@ -383,7 +383,7 @@
 glm::vec3 Canvas::cameraVector() const
 {
 	// Find out where the grid is projected on the screen
-	const QPoint gridOrigin2d = pointFToPoint(this->modelToScreenCoordinates(this->gridPlane.anchor));
+	const QPointF gridOrigin2d = this->modelToScreenCoordinates(this->gridPlane.anchor);
 	// Find out which direction the camera is looking at the grid origin in 3d
 	return glm::normalize(this->cameraLine(gridOrigin2d).direction);
 }

mercurial