src/ui/canvas.cpp

changeset 56
fad4a5dd8dee
parent 55
cb81ecb5fb23
child 57
5c0005f63319
--- a/src/ui/canvas.cpp	Wed Feb 26 02:21:07 2020 +0200
+++ b/src/ui/canvas.cpp	Wed Feb 26 22:26:05 2020 +0200
@@ -33,8 +33,8 @@
 		this->newStatusText("Position: <none>"_q);
 	}
 #else
-	const QPointF originAtCamera = this->worldToCamera({1, 1, 1});
-	this->newStatusText("Origin at (%1, %2), cursor at (%3, %4)"_q.arg(originAtCamera.x()).arg(originAtCamera.y()).arg(event->pos().x()).arg(event->pos().y()));
+	const QPointF originAtCamera = this->modelToScreenCoordinates({1, 1, 1});
+	this->newStatusText("{1,1,1} is at (%1, %2), cursor at (%3, %4)"_q.arg(originAtCamera.x()).arg(originAtCamera.y()).arg(event->pos().x()).arg(event->pos().y()));
 #endif
 	const ldraw::Id id = this->pick(event->pos());
 	this->highlighted = id;

mercurial