diff --git a/MatterControlLib/Library/Providers/FileSystem/FileSystemContainer.cs b/MatterControlLib/Library/Providers/FileSystem/FileSystemContainer.cs index 80cbf3912..a8df8ba97 100644 --- a/MatterControlLib/Library/Providers/FileSystem/FileSystemContainer.cs +++ b/MatterControlLib/Library/Providers/FileSystem/FileSystemContainer.cs @@ -143,6 +143,7 @@ namespace MatterHackers.MatterControl.Library { using (var zip = new ZipArchive(file, ZipArchiveMode.Create)) { + var savedItems = new HashSet(); foreach (var persistableItem in persistableItems) { string sourcePath = null; @@ -156,10 +157,19 @@ namespace MatterHackers.MatterControl.Library sourcePath = assetObject3D.AssetPath; } + var destFilename = Path.GetFileName(sourcePath); if (File.Exists(sourcePath)) { - var assetName = Path.Combine("Assets", Path.GetFileName(sourcePath)); - zip.CreateEntryFromFile(sourcePath, assetName); + if (!savedItems.Contains(destFilename)) + { + savedItems.Add(destFilename); + var assetName = Path.Combine("Assets", destFilename); + zip.CreateEntryFromFile(sourcePath, assetName); + } + } + else + { + int a = 0; } savedCount++; diff --git a/StaticData/Stls/sheet_icon.mcx b/StaticData/Stls/sheet_icon.mcx index e22b3ead0..95471619d 100644 Binary files a/StaticData/Stls/sheet_icon.mcx and b/StaticData/Stls/sheet_icon.mcx differ diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index ca796051b..f8a6ce095 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit ca796051b031627d420d38ef7e44aa5346771478 +Subproject commit f8a6ce095e4a653cb714b1816e00949722497b3e