Support for manufacturer tag.

This commit is contained in:
Don Honerbrink 2015-02-09 10:30:07 -06:00
parent 6ee43b6b86
commit 5db3d3f174

View File

@ -156,8 +156,16 @@ void ReloadableMedia::ReloadTexture()
{
std::string imagePath;
Config.GetMediaPropertyAbsolutePath(GetCollectionName(), Type, imagePath);
ImageBuilder imageBuild;
LoadedComponent = imageBuild.CreateImage(imagePath, selectedItem->GetFullTitle(), ScaleX, ScaleY);
std::string imageBasename = selectedItem->GetFullTitle();
if(Utils::ToLower(imageBasename) == "manufacturer")
{
imageBasename = selectedItem->GetManufacturer();
}
LoadedComponent = imageBuild.CreateImage(imagePath, imageBasename, ScaleX, ScaleY);
if (LoadedComponent != NULL)
{