Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
C-Fu
OpenGL
Commits
a9485902
Commit
a9485902
authored
Jan 21, 2017
by
Anakin
Browse files
fixed flag reading bug
parent
6fa81a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
QtMeshViewer/Source/MshFile.cpp
View file @
a9485902
...
...
@@ -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
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment