Skip to content

Commit

Permalink
bugfix: BoundingValueHierarchy.countNodes() returns incorrect count
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Apr 24, 2024
1 parent e4a1a62 commit 8a74234
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -484,14 +484,7 @@ btQuantizedBvh
return m_leafNodes.size(); // stephengold added 2024-04-23
} // stephengold added 2024-04-23
} // stephengold added 2024-04-23
int getNumNodes() const // stephengold added 2024-04-23
{ // stephengold added 2024-04-23
if (m_useQuantization) { // stephengold added 2024-04-23
return m_quantizedContiguousNodes.size(); // stephengold added 2024-04-23
} else { // stephengold added 2024-04-23
return m_contiguousNodes.size(); // stephengold added 2024-04-23
} // stephengold added 2024-04-23
} // stephengold added 2024-04-23
int getNumNodes() const { return m_curNodeIndex; } // stephengold modified 2024-04-24
int getPartId(int nodeIndex) const // stephengold added 2024-04-23
{ // stephengold added 2024-04-23
if (m_useQuantization) { // stephengold added 2024-04-23
Expand Down

0 comments on commit 8a74234

Please sign in to comment.