index is working some in scripting

This commit is contained in:
LarsBrubaker 2021-09-04 18:58:12 -07:00
parent 736a41d40c
commit 1043f9d28f
2 changed files with 11 additions and 8 deletions

View file

@ -94,11 +94,11 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
foreach(var child in Children)
{
if(SheetObject3D.HasParametersWithActiveFunctions(child))
if(!(child is OperationSourceContainerObject3D)
&& SheetObject3D.HasParametersWithActiveFunctions(child))
{
// This really needs to be 'Has Perameters With index at this level'
// And is not the source object (only the copies should try to re-build (that might fix the recursion bug without the extra filtering)
//child.Invalidate(new InvalidateArgs(child, InvalidateType.Properties));
child.Invalidate(new InvalidateArgs(child, InvalidateType.Properties));
}
}