Skip to content
This repository
Browse code

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

….cpp."
  • Loading branch information...
commit ba2edce409d65c04a2e26a33dfa1ca74ac71dc1d 1 parent 597b5e3
authored January 24, 2014

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/osg/KdTree.cpp
2  src/osg/KdTree.cpp
@@ -71,7 +71,7 @@ struct TriangleIndicesCollector
71 71
         const osg::Vec3& v2 = (*(_buildKdTree->_kdTree.getVertices()))[p2];
72 72
 
73 73
         // discard degenerate points
74  
-        if (v0==v1 || v1==v2 || v1==v2)
  74
+        if (v0==v1 || v1==v2 || v2==v0)
75 75
         {
76 76
             //OSG_NOTICE<<"Disgarding degenerate triangle"<<std::endl;
77 77
             return;

0 notes on commit ba2edce

Please sign in to comment.
Something went wrong with that request. Please try again.