mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
fix lasers scale issue
This commit is contained in:
parent
a7e3495cfb
commit
6303f61cc3
2 changed files with 5 additions and 2 deletions
|
@ -1122,6 +1122,7 @@ public:
|
|||
float getUserEyeHeight() const;
|
||||
|
||||
virtual SpatialParentTree* getParentTree() const override;
|
||||
virtual glm::vec3 scaleForChildren() const override { return glm::vec3(getSensorToWorldScale()); }
|
||||
|
||||
const QUuid& getSelfID() const { return AVATAR_SELF_ID; }
|
||||
|
||||
|
|
|
@ -20,8 +20,10 @@ public:
|
|||
_jointIndex(jointIndex) {
|
||||
auto nestablePointer = _spatiallyNestable.lock();
|
||||
if (nestablePointer) {
|
||||
glm::vec3 nestableDimensions = getActualScale(nestablePointer);
|
||||
_baseScale = glm::max(glm::vec3(0.001f), nestableDimensions);
|
||||
if (nestablePointer->getNestableType() != NestableType::Avatar) {
|
||||
glm::vec3 nestableDimensions = getActualScale(nestablePointer);
|
||||
_baseScale = glm::max(glm::vec3(0.001f), nestableDimensions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue