Merge pull request #4058 from larsbrubaker/master
Return that SliceItem failed if we have nothing on the bed
This commit is contained in:
commit
d410e4968e
3 changed files with 9 additions and 4 deletions
|
|
@ -203,7 +203,12 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
var stlFileLocations = GetStlFileLocations(object3D, ref mergeRules, printer, progressReporter, cancellationToken);
|
||||
|
||||
return SliceItem(stlFileLocations, mergeRules, gcodeFilePath, printer, progressReporter, cancellationToken);
|
||||
if (stlFileLocations.Count > 0)
|
||||
{
|
||||
return SliceItem(stlFileLocations, mergeRules, gcodeFilePath, printer, progressReporter, cancellationToken);
|
||||
}
|
||||
|
||||
return Task.FromResult(false);
|
||||
}
|
||||
|
||||
public static Task<bool> SliceItem(List<(Matrix4X4 matrix, string fileName)> stlFileLocations, string mergeRules, string gcodeFilePath, PrinterConfig printer, IProgress<ProgressStatus> reporter, CancellationToken cancellationToken)
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ namespace MatterHackers.MatterControl
|
|||
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
|
||||
|
||||
// Set default Agg providers
|
||||
AggContext.Config.ProviderTypes.SystemWindowProvider = "MatterHackers.Agg.UI.OpenGLWinformsWindowProvider, agg_platform_win32";
|
||||
//AggContext.Config.ProviderTypes.SystemWindowProvider = "MatterHackers.MatterControl.WinformsSingleWindowProvider, MatterControl.Winforms";
|
||||
//AggContext.Config.ProviderTypes.SystemWindowProvider = "MatterHackers.Agg.UI.OpenGLWinformsWindowProvider, agg_platform_win32";
|
||||
AggContext.Config.ProviderTypes.SystemWindowProvider = "MatterHackers.MatterControl.WinformsSingleWindowProvider, MatterControl.Winforms";
|
||||
|
||||
string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1fd8552e0a6df4fba11dee91e6d72e256d457ba6
|
||||
Subproject commit 3b0f4710bf8f500d8bc803b2d4bea6c84a3dcd7a
|
||||
Loading…
Add table
Add a link
Reference in a new issue