Skip to content
Snippets Groups Projects
Commit 75aae72e authored by Tazpn's avatar Tazpn
Browse files

nifskope: fix alpha property export

parent fe3597ea
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ NifTools MaxPlugin
3.4
o Exporter
- Fix issues with importing Freedom Force vs 3rd Reich animation
- Set Material name again which avoids crashes with Oblivion
- Fix alpha property so that it no longer divides by 100
o Importer
- Fix issues with importing Freedom Force vs 3rd Reich models and animation
......
......@@ -292,7 +292,7 @@ void Exporter::makeMaterial(NiAVObjectRef &parent, Mtl *mtl)
if(mtl->ClassID() == Class_ID(DMTL_CLASS_ID, 0) )
{
StdMat2 * smtl = (StdMat2*)mtl;
mtlProp->SetTransparency(smtl->GetOpacity(0) / 100.0f);
mtlProp->SetTransparency(smtl->GetOpacity(0));
if (smtl->SupportsShaders()) {
if (Shader *s = smtl->GetShader()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment