mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:13:32 +02:00
Merge pull request #5235 from ericrius1/lineTransform
line entities can now be properly rotated using rotation property
This commit is contained in:
commit
abab284f38
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