Skip to content

Commit

Permalink
#5893: Fix brush selection outlines not being updated in ortho view a…
Browse files Browse the repository at this point in the history
…fter grid snapping
  • Loading branch information
codereader committed Feb 25, 2022
1 parent ad8119a commit 1df0c02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions radiantcore/brush/BrushNode.cpp
Expand Up @@ -352,11 +352,13 @@ void BrushNode::onPreRender(const VolumeTest& volume)
{
auto& face = faceInstance.getFace();

if (volume.fill())
// A selected brush needs to update the solid renderable since that is used to render highlights
if (volume.fill() || isSelected())
{
face.getWindingSurfaceSolid().update(face.getFaceShader().getGLShader(), *_renderEntity);
}
else

if (!volume.fill())
{
face.getWindingSurfaceWireframe().update(_renderEntity->getWireShader(), *_renderEntity);
}
Expand Down

0 comments on commit 1df0c02

Please sign in to comment.