diff --git a/MatterControlLib/PartPreviewWindow/PlatingHelper.cs b/MatterControlLib/PartPreviewWindow/PlatingHelper.cs index 6893e7cd3..61965ed10 100644 --- a/MatterControlLib/PartPreviewWindow/PlatingHelper.cs +++ b/MatterControlLib/PartPreviewWindow/PlatingHelper.cs @@ -127,6 +127,14 @@ namespace MatterHackers.MatterControl currentRatioDone += ratioPerMeshGroup; } + if (objectsThatHaveBeenPlaced.Count == 0) + { + // We did not place any object. Make sure we place at least 1 no matter what + var object3D = object3DList[0]; + objectsThatHaveBeenPlaced.Add(object3D); + objectsThatWereArrange.Add(object3D); + } + // and finally center whatever we have as a group if (positionType != PositionType.None) { diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index b59031c52..3bafc781e 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit b59031c528a5935a63c3993cfd78fad354d1968b +Subproject commit 3bafc781e18d4d6f6ce0d1aba3b23d24d24b8048