mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 00:09:41 +00:00
Fix updating UI image resource
This commit is contained in:
parent
5728bfeb49
commit
8e81b6c645
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ namespace LuaUi
|
|||
|
||||
void LuaImage::updateProperties()
|
||||
{
|
||||
deleteAllItems();
|
||||
TextureResource* resource = propertyValue<TextureResource*>("resource", nullptr);
|
||||
MyGUI::IntCoord atlasCoord;
|
||||
if (resource)
|
||||
|
@ -59,6 +60,7 @@ namespace LuaUi
|
|||
tileH ? textureSize.width : 0,
|
||||
tileV ? textureSize.height : 0
|
||||
));
|
||||
setImageTile(textureSize);
|
||||
|
||||
if (atlasCoord.width == 0)
|
||||
atlasCoord.width = textureSize.width;
|
||||
|
|
Loading…
Reference in a new issue