Return that SliceItem failed if we have nothing on the bed
This commit is contained in:
parent
9cdfabb75f
commit
977a2ec922
2 changed files with 7 additions and 2 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)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1fd8552e0a6df4fba11dee91e6d72e256d457ba6
|
||||
Subproject commit 3b0f4710bf8f500d8bc803b2d4bea6c84a3dcd7a
|
||||
Loading…
Add table
Add a link
Reference in a new issue