diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 5e69766ba..58f42adf3 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -409,7 +409,7 @@ private: std::vector indices; BOOST_FOREACH(unsigned int index, mindices) { - if(had.find(index) != had.end()) { + if(had.find(index) == had.end()) { indices.push_back(ConvertMeshMultiMaterial(mesh, model, index)); had.insert(index);