Skip to content

Commit

Permalink
#6115: Apply a fix to SetLayerSelectedWalker
Browse files Browse the repository at this point in the history
When de-selecting layered items the visibility check can be omitted.
  • Loading branch information
codereader committed Oct 2, 2022
1 parent 2e9bf87 commit 7f7010a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions radiantcore/layers/SetLayerSelectedWalker.h
Expand Up @@ -27,8 +27,9 @@ class SetLayerSelectedWalker :

bool pre(const INodePtr& node) override
{
// skip hidden nodes
if (!node->visible()) return false;
// Skip hidden nodes, but only when we're selecting
// When de-selecting we don't care whether the target node can be seen
if (_selected && !node->visible()) return false;

// Skip the worldspawn
if (Node_isWorldspawn(node)) return true;
Expand Down

0 comments on commit 7f7010a

Please sign in to comment.