Backport onload event from scene_bundle

This commit is contained in:
John Lewin 2016-07-24 17:26:24 -07:00
parent 208d9b334a
commit 9f01abe653
8 changed files with 44 additions and 75 deletions

View file

@ -371,16 +371,10 @@ namespace MatterHackers.MatterControl.PrintQueue
throw new NotImplementedException();
}
private bool firstDraw = true;
public override void OnDraw(Graphics2D graphics2D)
public override void OnLoad(EventArgs args)
{
if (firstDraw)
{
firstDraw = false;
EnsureSelection();
}
base.OnDraw(graphics2D);
EnsureSelection();
base.OnLoad(args);
}
public override void OnClosed(EventArgs e)