mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
don't render stray/invalid hand-lasers in HMD mode
This commit is contained in:
parent
be1332532f
commit
3c90413ebb
1 changed files with 5 additions and 3 deletions
|
@ -527,9 +527,11 @@ void HmdDisplayPlugin::compositeExtra() {
|
|||
if (_presentHandPoses[index] == IDENTITY_MATRIX) {
|
||||
return;
|
||||
}
|
||||
const auto& points = _presentHandLaserPoints[index];
|
||||
const auto& lasers = _presentHandLasers[index];
|
||||
geometryCache->renderGlowLine(batch, points.first, points.second, lasers.color);
|
||||
const auto& laser = _presentHandLasers[index];
|
||||
if (laser.valid()) {
|
||||
const auto& points = _presentHandLaserPoints[index];
|
||||
geometryCache->renderGlowLine(batch, points.first, points.second, laser.color);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue