cppcheck
This commit is contained in:
@@ -133,11 +133,13 @@ protected:
|
||||
|
||||
bool check(BaseExporter& _be, Options _opt) const
|
||||
{
|
||||
return (_opt.check(Options::VertexNormal ) <= _be.has_vertex_normals())
|
||||
&& (_opt.check(Options::VertexTexCoord)<= _be.has_vertex_texcoords())
|
||||
&& (_opt.check(Options::VertexColor) <= _be.has_vertex_colors())
|
||||
&& (_opt.check(Options::FaceNormal) <= _be.has_face_normals())
|
||||
&& (_opt.check(Options::FaceColor) <= _be.has_face_colors());
|
||||
// Check for all Options. When we want to write them (_opt.check() ) , they have to be available ( has_ )
|
||||
// Converts to not A (write them) or B (available)
|
||||
return ( !_opt.check(Options::VertexNormal ) || _be.has_vertex_normals())
|
||||
&& ( !_opt.check(Options::VertexTexCoord)|| _be.has_vertex_texcoords())
|
||||
&& ( !_opt.check(Options::VertexColor) || _be.has_vertex_colors())
|
||||
&& ( !_opt.check(Options::FaceNormal) || _be.has_face_normals())
|
||||
&& ( !_opt.check(Options::FaceColor) || _be.has_face_colors());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user