mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
Make circle3d dimension property specify overall size not half size
This commit is contained in:
parent
6a4577b6a5
commit
056365932b
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void Circle3DOverlay::render(RenderArgs* args) {
|
|||
glPushMatrix();
|
||||
glm::vec3 positionToCenter = center - position;
|
||||
glTranslatef(positionToCenter.x, positionToCenter.y, positionToCenter.z);
|
||||
glScalef(dimensions.x, dimensions.y, 1.0f);
|
||||
glScalef(dimensions.x / 2.0f, dimensions.y / 2.0f, 1.0f);
|
||||
|
||||
glLineWidth(_lineWidth);
|
||||
|
||||
|
|
Loading…
Reference in a new issue