Merge pull request #11396 from hyperlogic/bug-fix/shape-rendering

Shapes now render at the correct size.
This commit is contained in:
Seth Alves 2017-09-18 17:41:31 -07:00 committed by GitHub
commit a889ca1b01

View file

@ -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 {