Skip to content

Commit

Permalink
fixup! VisualiserTool : Respect opacity for vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Feb 25, 2025
1 parent 069878d commit 09d01fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GafferSceneUI/VisualiserTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ class VisualiserGadget : public Gadget
}
const GLboolean blendEnabled = glIsEnabled( GL_BLEND );
if( blendEnabled )
if( !blendEnabled )
{
glEnable( GL_BLEND );
}
Expand Down Expand Up @@ -1769,9 +1769,9 @@ class VisualiserGadget : public Gadget
{
glEnable( GL_LINE_SMOOTH );
}
if( blendEnabled )
if( !blendEnabled )
{
glEnable( GL_BLEND );
glDisable( GL_BLEND );
}
if( !depthEnabled )
{
Expand Down

0 comments on commit 09d01fd

Please sign in to comment.