Avoid a warning about missing texture in race result gui
This commit is contained in:
parent
12188c5287
commit
29ba4ee543
@ -65,15 +65,15 @@ void IconButtonWidget::add()
|
|||||||
// ---- Icon
|
// ---- Icon
|
||||||
if (m_texture == NULL)
|
if (m_texture == NULL)
|
||||||
{
|
{
|
||||||
if (m_icon_path_type == ICON_PATH_TYPE_ABSOLUTE)
|
// Avoid warning about missing texture in case of e.g.
|
||||||
|
// screenshot widget
|
||||||
|
if (m_properties[PROP_ICON] != "")
|
||||||
{
|
{
|
||||||
setTexture(irr_driver->getTexture(m_properties[PROP_ICON]));
|
if (m_icon_path_type == ICON_PATH_TYPE_ABSOLUTE)
|
||||||
}
|
{
|
||||||
else if (m_icon_path_type == ICON_PATH_TYPE_RELATIVE)
|
setTexture(irr_driver->getTexture(m_properties[PROP_ICON]));
|
||||||
{
|
}
|
||||||
// Avoid warning about missing texture in case of e.g.
|
else if (m_icon_path_type == ICON_PATH_TYPE_RELATIVE)
|
||||||
// screenshot widget
|
|
||||||
if(m_properties[PROP_ICON] != "")
|
|
||||||
{
|
{
|
||||||
std::string file = file_manager->getAsset(m_properties[PROP_ICON]);
|
std::string file = file_manager->getAsset(m_properties[PROP_ICON]);
|
||||||
setTexture(irr_driver->getTexture(file));
|
setTexture(irr_driver->getTexture(file));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user