Working to make output type be clearable

This commit is contained in:
Lars Brubaker 2022-05-27 17:44:03 -07:00 committed by LarsBrubaker
parent c94159d196
commit 90cf1f183b

View file

@ -302,7 +302,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
if (selectedItem.Color != colorField.Color)
{
undoBuffer.AddAndDo(new ChangeColor(selectedItem, colorField.Color, PrintOutputTypes.Default));
if (colorField.Color == Color.Transparent)
{
undoBuffer.AddAndDo(new ChangeColor(selectedItem, colorField.Color, PrintOutputTypes.Default));
}
else
{
undoBuffer.AddAndDo(new ChangeColor(selectedItem, colorField.Color, PrintOutputTypes.Solid));
}
}
};