shifts getImageFilename to getImagePath on ImageAsset

Adjusts references to utilize getImagePath to ensure things using the image asset gets the proper full path
Adjusts image import logic to import finding associated images
Adds logic so if a roughness map is imported, the generated material asset has the invertSmoothness flag on.
This commit is contained in:
Areloch 2020-08-13 01:35:24 -05:00
parent 8d3071fb72
commit 686975c8ee
4 changed files with 15 additions and 7 deletions

View file

@ -353,11 +353,11 @@ ImageAsset::ImageTypes ImageAsset::getImageTypeFromName(const char* name)
return (ImageTypes)ret;
}
DefineEngineMethod(ImageAsset, getImageFilename, const char*, (), ,
DefineEngineMethod(ImageAsset, getImagePath, const char*, (), ,
"Creates an instance of the given GameObject given the asset definition.\n"
"@return The GameObject entity created from the asset.")
{
return object->getImageFileName();
return object->getImagePath();
}
DefineEngineMethod(ImageAsset, getImageInfo, const char*, (), ,