We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b896c0 commit 0a50bcfCopy full SHA for 0a50bcf
1 file changed
src/engine/BspTree.cpp
@@ -90,10 +90,14 @@ std::vector<NodeIndex> BspTree::findLeafOf(const Utils::BBox3D& bbox)
90
case Utils::PLANE_INFRONT: // Front
91
if (m_Nodes[n].front != INVALID_NODE)
92
return rec(bbox, m_Nodes[n].front);
93
+ else
94
+ return {};
95
96
case Utils::PLANE_BEHIND: // Back
97
if (m_Nodes[n].back != INVALID_NODE)
98
return rec(bbox, m_Nodes[n].back);
99
100
101
102
case Utils::PLANE_SPANNING: // Split
103
{
@@ -108,8 +112,6 @@ std::vector<NodeIndex> BspTree::findLeafOf(const Utils::BBox3D& bbox)
108
112
default:
109
113
return {};
110
114
}
111
-
- return {};
115
};
116
117
ddSetTransform(nullptr);
0 commit comments