forked from mirror/openmw-tes3mp
Ensure the material is properly built after creating it
This commit is contained in:
parent
1168f15361
commit
166d529c50
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue