mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Don't use transparency override if there's no transparency (rug fix for Bug #2050)
This commit is contained in:
parent
077c619611
commit
59cde9b431
@ -354,7 +354,7 @@ Ogre::String NIFMaterialLoader::getMaterial(const Nif::ShapeData *shapedata,
|
||||
instance->setProperty("has_vertex_colour", sh::makeProperty(new sh::BooleanValue(true)));
|
||||
|
||||
// Override alpha flags based on our override list (transparency-overrides.cfg)
|
||||
if (!texName[0].empty())
|
||||
if ((alphaFlags&1) && !texName[0].empty())
|
||||
{
|
||||
NifOverrides::TransparencyResult result = NifOverrides::Overrides::getTransparencyOverride(texName[0]);
|
||||
if (result.first)
|
||||
|
Loading…
x
Reference in New Issue
Block a user