Commit a9485902 authored by Anakin's avatar Anakin

fixed flag reading bug

parent 6fa81a8c
......@@ -272,7 +272,7 @@ void MshFile::analyseMatdChunks(std::list<ChunkHeader*>& chunkList)
// 7: specular
for (unsigned int i = 0; i < 8; i++)
m_materials->back().flags[i] = (flag << (7 - i)) >> 7;
m_materials->back().flags[i] = (std::uint8_t)(flag << (7 - i)) >> 7;
m_materials->back().transparent = m_materials->back().flags[2] || m_materials->back().flags[3] || m_materials->back().flags[4] || m_materials->back().flags[6];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment