diff --git a/components/lua_ui/image.cpp b/components/lua_ui/image.cpp index 69bccac1ed..7eeca1dc0e 100644 --- a/components/lua_ui/image.cpp +++ b/components/lua_ui/image.cpp @@ -35,6 +35,7 @@ namespace LuaUi void LuaImage::updateProperties() { + deleteAllItems(); TextureResource* resource = propertyValue("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;