mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-09 05:13:06 +02:00
Update RenderableImageEntityItem.cpp
This commit is contained in:
parent
e5f108b022
commit
6b82c7fe90
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ void ImageEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
|||
} else {
|
||||
naturalDimensions.y = height / width;
|
||||
}
|
||||
// Unlike Models (where the Renderer also doubles as the EntityItem), Images need to
|
||||
// convey this information back to the game object from the Renderer
|
||||
entity->setNaturalDimension(naturalDimensions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue