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:
parent
9778bf9b2e
commit
85403d78f6
6 changed files with 0 additions and 78 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue