Check for selection correctly.
issue: MatterHackers/MCCentral#2386 Can't change the color on text object
This commit is contained in:
parent
4f51943c05
commit
50d73dce53
3 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue