Making canceling during load work much better.

STLs can now stop loading during most of the load operations (only sort verts cannot)
Changed the signature on report progress ratio to make it clearer.
Made mesh viewer handle better load stoping.
This commit is contained in:
larsbrubaker 2014-10-26 18:08:03 -07:00
parent e05ab1e7f0
commit 3af659dc9d
8 changed files with 54 additions and 46 deletions

View file

@ -254,8 +254,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
}
}
ReportProgress fileLoadReportProgress = null;
public void LoadFilesIntoLibrary(string[] files, ReportProgress reportProgress = null)
ReportProgressRatio fileLoadReportProgress = null;
public void LoadFilesIntoLibrary(string[] files, ReportProgressRatio reportProgress = null)
{
this.fileLoadReportProgress = reportProgress;
if (files != null && files.Length > 0)