Skip to content

Commit

Permalink
MM Renderer - Fix display layer visiblity bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Jan 29, 2023
1 parent de71879 commit 86c10e7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/mmSolver/render/passes/DisplayLayerList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,21 @@ bool DisplayLayerList::nextRenderOperation() {
m_current_layer = -1;
m_current_op = -1;
} else {
DisplayLayer* layer =
DisplayLayerList::getDisplayLayer(m_current_layer);
for (; (m_current_layer < layer_count) &&
(layer->visibility() == false);
m_current_layer++) {
layer = DisplayLayerList::getDisplayLayer(m_current_layer);
}
// Get next layer index that is visible.
do {
DisplayLayer* layer =
DisplayLayerList::getDisplayLayer(m_current_layer);
if (layer->visibility()) {
break;
} else {
m_current_layer += 1;
}
if (m_current_layer >= layer_count) {
m_current_layer = -1;
m_current_op = -1;
break;
}
} while (m_current_layer < layer_count);
}
}

Expand Down

0 comments on commit 86c10e7

Please sign in to comment.