Skip to content

Commit

Permalink
Fix for transparency issue on indexed lineset.
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerEnderlein committed Jun 16, 2021
1 parent f8a82c0 commit 1bf3ed5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/shapenodes/SoIndexedLineSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ SoIndexedLineSet::GLRender(SoGLRenderAction * action)
if (this->coordIndex.getNum() < 2) return;
SoState * state = action->getState();

if (!this->shouldGLRender(action)) return;

SbBool didpush = FALSE;

if (this->vertexProperty.getValue()) {
Expand All @@ -249,6 +247,12 @@ SoIndexedLineSet::GLRender(SoGLRenderAction * action)
this->vertexProperty.getValue()->GLRender(action);
}

if (!this->shouldGLRender(action)) {
if (didpush)
state->pop();
return;
}

SoMaterialBundle mb(action);
SoTextureCoordinateBundle tb(action, TRUE, FALSE);
SbBool doTextures = tb.needCoordinates();
Expand Down

0 comments on commit 1bf3ed5

Please sign in to comment.