Fixed NullReferenceException being thrown when exporting AMF file

This commit is contained in:
oneill 2022-08-06 01:54:46 +09:00
parent 02be841100
commit 9d1239e941

View file

@ -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;