Skip to content
Snippets Groups Projects
Commit 24b0e11e authored by Tazpn's avatar Tazpn
Browse files

niflib: set src Mode and lighting flags when loading old files.

parent f6986e32
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,10 @@ void NiVertexColorProperty::Read( istream& in, list<unsigned int> & link_stack,
};
//--BEGIN POST-READ CUSTOM CODE--//
if ( info.version > 0x14000005 ) {
lightingMode = (LightMode)UnpackField( flags, 3, 1);
vertexMode = (VertMode)UnpackField( flags, 4, 2);
}
//--END CUSTOM CODE--//
}
......
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