mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
Ensure the material is properly built after creating it
This commit is contained in:
parent
1168f15361
commit
166d529c50
@ -733,6 +733,7 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
|||||||
instance->setProperty("transparent_sorting", sh::makeProperty(new sh::StringValue(((alphaFlags>>13)&1) ?
|
instance->setProperty("transparent_sorting", sh::makeProperty(new sh::StringValue(((alphaFlags>>13)&1) ?
|
||||||
"off" : "on")));
|
"off" : "on")));
|
||||||
|
|
||||||
|
sh::Factory::getInstance()._ensureMaterial(matname, "Default");
|
||||||
return matname;
|
return matname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user