mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-25 04:18:45 +02:00
lasers scale with avatar
This commit is contained in:
parent
cc9a3e2541
commit
da1ffc15e3
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ void LaserPointer::RenderState::update(const glm::vec3& origin, const glm::vec3&
|
||||||
properties.setVisible(true);
|
properties.setVisible(true);
|
||||||
properties.setIgnorePickIntersection(doesPathIgnorePicks());
|
properties.setIgnorePickIntersection(doesPathIgnorePicks());
|
||||||
QVector<float> widths;
|
QVector<float> widths;
|
||||||
widths.append(getLineWidth() * parentScale);
|
float width = getLineWidth() * parentScale;
|
||||||
|
widths.append(width);
|
||||||
|
widths.append(width);
|
||||||
|
properties.setStrokeWidths(widths);
|
||||||
DependencyManager::get<EntityScriptingInterface>()->editEntity(getPathID(), properties);
|
DependencyManager::get<EntityScriptingInterface>()->editEntity(getPathID(), properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue