Commit 180d1c8a authored by Matthias Möller's avatar Matthias Möller
Browse files

- fix grouping with polymeshes

- fix type casting

closes #1853

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17798 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 26fb00d2
......@@ -214,7 +214,7 @@ void OBJImporter::addUsedVertices(int _groupId) {
// add all vertices to the mesh
if(usedVertices_.size() <= (unsigned int)_groupId) return;
if(usedVertices_.size() <= static_cast<size_t>(_groupId)) return;
for(std::map<int, VertexHandle>::const_iterator it = usedVertices_[_groupId].begin();
it != usedVertices_[_groupId].end(); ++it) {
......@@ -238,7 +238,7 @@ void OBJImporter::addUsedVertices(int _groupId) {
//add all vertices to the mesh
if(usedVertices_.size() <= (unsigned int)currentObject()) return;
if(usedVertices_.size() <= static_cast<size_t>(_groupId)) return;
for(std::map<int, VertexHandle>::const_iterator it = usedVertices_[_groupId].begin();
it != usedVertices_[_groupId].end(); ++it) {
......
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