mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +02:00
More accurate scale from SensorToWorldScale
This commit is contained in:
parent
d53a29b958
commit
489e244342
1 changed files with 1 additions and 3 deletions
|
@ -158,8 +158,6 @@ void LaserPointer::updateRenderState(const RenderState& renderState, const Inter
|
|||
}
|
||||
}
|
||||
|
||||
float avatarScale = DependencyManager::get<AvatarManager>()->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<AvatarManager>()->getMyAvatar()->getSensorToWorldScale());
|
||||
}
|
||||
qApp->getOverlays().editOverlay(renderState.getPathID(), pathProps);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue