Switch to indicating highlight, allow feature to determine highlight
This commit is contained in:
parent
1e965fc2e7
commit
2832f1f912
5 changed files with 33 additions and 17 deletions
|
|
@ -207,12 +207,14 @@ namespace MatterHackers.GCodeVisualizer
|
|||
{
|
||||
graphics2DGl.PreRender(Color.White);
|
||||
GL.Begin(BeginMode.Triangles);
|
||||
|
||||
int lastFeature = endFeature - 1;
|
||||
for (int i = startFeature; i < endFeature; i++)
|
||||
{
|
||||
RenderFeatureBase feature = renderFeatures[renderInfo.EndLayerIndex][i];
|
||||
if (feature != null)
|
||||
{
|
||||
feature.Render(graphics2DGl, renderInfo);
|
||||
feature.Render(graphics2DGl, renderInfo, highlightFeature: i == lastFeature);
|
||||
}
|
||||
}
|
||||
GL.End();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue