Skip to content

Commit

Permalink
#5623: PatchNode::testSelect doesn't need to protect itself when the …
Browse files Browse the repository at this point in the history
…node is hidden, this is handled by the caller, e.g. SceneGraph::forEachVisibleNodeInVolume
  • Loading branch information
codereader committed May 30, 2021
1 parent 7d4a954 commit 17841e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions radiantcore/patch/PatchNode.cpp
Expand Up @@ -149,9 +149,6 @@ void PatchNode::snapComponents(float snap) {
// Test the Patch instance for selection
void PatchNode::testSelect(Selector& selector, SelectionTest& test)
{
// Do not select patch if it is filtered
if (!isVisible()) return;

// Check if this patch has a twosided material
bool isTwosided = m_patch.getSurfaceShader().getGLShader()->getMaterial()->getCullType() == Material::CULL_NONE;

Expand Down

0 comments on commit 17841e3

Please sign in to comment.