Permalink
Browse files

From Michael Schanne, "small fix for a duplicate OR operand in KdTree…

….cpp."
  • Loading branch information...
1 parent 597b5e3 commit ba2edce409d65c04a2e26a33dfa1ca74ac71dc1d @osg-training-guest osg-training-guest committed Jan 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/osg/KdTree.cpp
View
@@ -71,7 +71,7 @@ struct TriangleIndicesCollector
const osg::Vec3& v2 = (*(_buildKdTree->_kdTree.getVertices()))[p2];
// discard degenerate points
- if (v0==v1 || v1==v2 || v1==v2)
+ if (v0==v1 || v1==v2 || v2==v0)
{
//OSG_NOTICE<<"Disgarding degenerate triangle"<<std::endl;
return;

0 comments on commit ba2edce

Please sign in to comment.