make set color work on types with source object

issue: MatterHackers/MCCentral#3985
Changing color on a Scale node makes it go away
This commit is contained in:
Lars Brubaker 2018-08-15 17:01:12 -07:00
parent 9778bf9b2e
commit 85403d78f6
6 changed files with 0 additions and 78 deletions

View file

@ -73,19 +73,6 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
{
Rebuild(null);
}
else if (invalidateType.InvalidateType == InvalidateType.Color)
{
var sourceItem = OperationSourceObject3D.GetOrCreateSourceContainer(this).Children.FirstOrDefault();
foreach (var item in Children)
{
if (item != sourceItem)
{
item.Color = sourceItem.Color;
}
}
base.OnInvalidate(invalidateType);
}
else if (invalidateType.InvalidateType == InvalidateType.Properties
&& invalidateType.Source == this)
{