Check for selection correctly.

issue: MatterHackers/MCCentral#2386
Can't change the color on text object
This commit is contained in:
Lars Brubaker 2017-12-08 14:02:25 -08:00
parent 4f51943c05
commit 50d73dce53
3 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public ChangeColor(IObject3D selectedItem, Color color)
{
this.color = color;
if (selectedItem.Children.Count() > 0)
if (selectedItem.ItemType == Object3DTypes.SelectionGroup)
{
SetData(selectedItem.Children.ToList());
}

View file

@ -41,7 +41,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public MakeSupport(IObject3D selectedItem)
{
if (selectedItem.Children.Count() > 0)
if (selectedItem.ItemType == Object3DTypes.SelectionGroup)
{
SetData(selectedItem.Children.ToList());
}