Collapse single use method into caller
This commit is contained in:
parent
ff7b8e40cf
commit
7293319e4e
2 changed files with 6 additions and 9 deletions
|
|
@ -112,7 +112,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if (DoOpenGlDrawing)
|
||||
{
|
||||
GLHelper.SetGlContext(this.World, renderSource.TransformToScreenSpace(renderSource.LocalBounds), lighting);
|
||||
OnDrawGlContent(e);
|
||||
|
||||
// OnDrawGlContent
|
||||
DrawGlOpaqueContent?.Invoke(this, e);
|
||||
this.Draw_GlTransparentContent(e);
|
||||
|
||||
GLHelper.UnsetGlContext();
|
||||
}
|
||||
}
|
||||
|
|
@ -342,12 +346,5 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
|
||||
public GuiWidget GuiSurface => this;
|
||||
|
||||
private void OnDrawGlContent(DrawEventArgs e)
|
||||
{
|
||||
DrawGlOpaqueContent?.Invoke(this, e);
|
||||
|
||||
this.Draw_GlTransparentContent(this, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -421,7 +421,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
|
||||
|
||||
private void Draw_GlTransparentContent(object sender, DrawEventArgs e)
|
||||
private void Draw_GlTransparentContent(DrawEventArgs e)
|
||||
{
|
||||
var gcodeOptions = sceneContext.RendererOptions;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue