mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
line entities can now be properly rotated using rotation property
This commit is contained in:
parent
62b3ca936f
commit
843ab6d5e3
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
|
|||
gpu::Batch& batch = *args->_batch;
|
||||
Transform transform = Transform();
|
||||
transform.setTranslation(getPosition());
|
||||
transform.setRotation(getRotation());
|
||||
batch.setModelTransform(transform);
|
||||
|
||||
batch._glLineWidth(getLineWidth());
|
||||
|
|
Loading…
Reference in a new issue