From 9d1239e941503c6335d2a7fc52a69971e307cb9d Mon Sep 17 00:00:00 2001 From: oneill <516991+oneill@users.noreply.github.com> Date: Sat, 6 Aug 2022 01:54:46 +0900 Subject: [PATCH] Fixed NullReferenceException being thrown when exporting AMF file --- MatterControlLib/Library/Export/AmfExport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatterControlLib/Library/Export/AmfExport.cs b/MatterControlLib/Library/Export/AmfExport.cs index 436a31b81..a8061b881 100644 --- a/MatterControlLib/Library/Export/AmfExport.cs +++ b/MatterControlLib/Library/Export/AmfExport.cs @@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl.Library.Export var firstItem = libraryItems.OfType().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;