mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-28 19:23:53 +00:00
Fix yet another oopsie RenderObject::setTexture()
Didn't apply empty ("") texture when another texture was already set.
This commit is contained in:
parent
6971e7898f
commit
96206dd82a
1 changed files with 3 additions and 0 deletions
|
@ -1363,7 +1363,10 @@ bool RenderObject::setTexture(const std::string &n)
|
|||
stringToLowerUserData(name);
|
||||
|
||||
if (name.empty())
|
||||
{
|
||||
setTexturePointer(NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(texture && name == texture->name)
|
||||
return true; // no texture change
|
||||
|
|
Loading…
Reference in a new issue