From 489e244342db3006c231e3cf18453cbb301f7894 Mon Sep 17 00:00:00 2001 From: luiscuenca Date: Tue, 14 Nov 2017 09:56:23 -0700 Subject: [PATCH] More accurate scale from SensorToWorldScale --- interface/src/raypick/LaserPointer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/src/raypick/LaserPointer.cpp b/interface/src/raypick/LaserPointer.cpp index 6d29154be0..71a547533b 100644 --- a/interface/src/raypick/LaserPointer.cpp +++ b/interface/src/raypick/LaserPointer.cpp @@ -158,8 +158,6 @@ void LaserPointer::updateRenderState(const RenderState& renderState, const Inter } } - float avatarScale = DependencyManager::get()->getMyAvatar()->getAvatarScale(); - QVariant end = vec3toVariant(endVec); if (!renderState.getPathID().isNull()) { QVariantMap pathProps; @@ -168,7 +166,7 @@ void LaserPointer::updateRenderState(const RenderState& renderState, const Inter pathProps.insert("visible", true); pathProps.insert("ignoreRayIntersection", renderState.doesPathIgnoreRays()); if (_scaleWithAvatar) { - pathProps.insert("lineWidth", renderState.getLineWidth() * avatarScale); + pathProps.insert("lineWidth", renderState.getLineWidth() * DependencyManager::get()->getMyAvatar()->getSensorToWorldScale()); } qApp->getOverlays().editOverlay(renderState.getPathID(), pathProps); }