mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-09 02:39:28 +02:00
Merge pull request #11396 from hyperlogic/bug-fix/shape-rendering
Shapes now render at the correct size.
This commit is contained in:
commit
a889ca1b01
1 changed files with 4 additions and 4 deletions
|
@ -98,15 +98,15 @@ void ShapeEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
||||||
}
|
}
|
||||||
|
|
||||||
_shape = entity->getShape();
|
_shape = entity->getShape();
|
||||||
|
_position = entity->getPosition();
|
||||||
|
_dimensions = entity->getDimensions();
|
||||||
|
_orientation = entity->getOrientation();
|
||||||
|
|
||||||
if (_shape == entity::Sphere) {
|
if (_shape == entity::Sphere) {
|
||||||
_modelTransform.postScale(SPHERE_ENTITY_SCALE);
|
_modelTransform.postScale(SPHERE_ENTITY_SCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_modelTransform.postScale(_dimensions);
|
||||||
_position = entity->getPosition();
|
|
||||||
_dimensions = entity->getDimensions();
|
|
||||||
_orientation = entity->getOrientation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShapeEntityRenderer::isTransparent() const {
|
bool ShapeEntityRenderer::isTransparent() const {
|
||||||
|
|
Loading…
Reference in a new issue