mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #997 from Winterleaf/Fix-PostEffects
This just adds some console spam if the PostEffect Texture isn't found. ...
This commit is contained in:
commit
ca287f3308
1 changed files with 3 additions and 1 deletions
|
|
@ -403,7 +403,9 @@ bool PostEffect::onAdd()
|
||||||
texFilename = scriptPath.getFullPath() + '/' + texFilename;
|
texFilename = scriptPath.getFullPath() + '/' + texFilename;
|
||||||
|
|
||||||
// Try to load the texture.
|
// Try to load the texture.
|
||||||
mTextures[i].set( texFilename, &PostFxTextureProfile, avar( "%s() - (line %d)", __FUNCTION__, __LINE__ ) );
|
bool success = mTextures[i].set( texFilename, &PostFxTextureProfile, avar( "%s() - (line %d)", __FUNCTION__, __LINE__ ) );
|
||||||
|
if (!success)
|
||||||
|
Con::errorf("Invalid Texture for PostEffect (%s), The Texture '%s' does not exist!", this->getName(), texFilename.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is the target a named target?
|
// Is the target a named target?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue