mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Shapes now render at the correct size.
This commit is contained in:
parent
a41aced032
commit
73ad9051a4
1 changed files with 4 additions and 4 deletions
|
@ -98,15 +98,15 @@ void ShapeEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
|||
}
|
||||
|
||||
_shape = entity->getShape();
|
||||
_position = entity->getPosition();
|
||||
_dimensions = entity->getDimensions();
|
||||
_orientation = entity->getOrientation();
|
||||
|
||||
if (_shape == entity::Sphere) {
|
||||
_modelTransform.postScale(SPHERE_ENTITY_SCALE);
|
||||
}
|
||||
|
||||
|
||||
_position = entity->getPosition();
|
||||
_dimensions = entity->getDimensions();
|
||||
_orientation = entity->getOrientation();
|
||||
_modelTransform.postScale(_dimensions);
|
||||
}
|
||||
|
||||
bool ShapeEntityRenderer::isTransparent() const {
|
||||
|
|
Loading…
Reference in a new issue