Merge pull request #5360 from oneill/fix-exception-on-amf-export
Fixed NullReferenceException being thrown when exporting AMF file
This commit is contained in:
commit
fe5c44f8e0
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl.Library.Export
|
|||
var firstItem = libraryItems.OfType<ILibraryAsset>().FirstOrDefault();
|
||||
if (firstItem is ILibraryAsset libraryItem)
|
||||
{
|
||||
bool exportSuccessful = await MeshExport.ExportMesh(libraryItem, outputPath, null);
|
||||
bool exportSuccessful = await MeshExport.ExportMesh(libraryItem, outputPath, progress);
|
||||
if (exportSuccessful)
|
||||
{
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue