|
|
@@ -398,7 +398,7 @@ void ProcessedMaterial::_setStageData()
|
|
|
if (!mStages[i].getTex(MFT_DiffuseMap))
|
|
|
{
|
|
|
// If we start with a #, we're probably actually attempting to hit a named target and it may not get a hit on the first pass.
|
|
|
- if (!String(mMaterial->getDiffuseMapAsset(i)->getImageFile()).startsWith("#") && !String(mMaterial->getDiffuseMapAsset(i)->getImageFile()).startsWith("$"))
|
|
|
+ if (!mMaterial->getDiffuseMapAsset(i)->isNamedTarget())
|
|
|
mMaterial->logError("Failed to load diffuse map %s for stage %i", mMaterial->getDiffuseMapAsset(i)->getImageFile(), i);
|
|
|
|
|
|
mStages[i].setTex(MFT_DiffuseMap, _createTexture(GFXTextureManager::getMissingTexturePath().c_str(), &GFXStaticTextureSRGBProfile));
|