Component objects can use array index

This commit is contained in:
LarsBrubaker 2022-03-23 08:15:26 -07:00
parent cb8a942e08
commit 1954347c9a
3 changed files with 8 additions and 2 deletions

View file

@ -65,7 +65,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
if (cellId != null)
{
cellData = cellData.Replace(expansion.key, SheetObject3D.RetrieveArrayIndex(component, expansion.index).ToString());
var newValue = cellData.Replace(expansion.key, SheetObject3D.RetrieveArrayIndex(component, expansion.index).ToString());
component.SurfacedEditors[i] = "!" + cellId + "," + newValue;
}
}
}
@ -103,6 +104,10 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
// we don't need to rebuild our source object
return false;
}
else if (item.Parent is ComponentObject3D)
{
return false;
}
// process everything else
return true;

View file

@ -213,6 +213,7 @@ namespace MatterHackers.MatterControl.DesignTools
switch(invalidateType.InvalidateType)
{
case InvalidateType.SheetUpdated:
case InvalidateType.Properties:
RecalculateSheet();
break;
}

@ -1 +1 @@
Subproject commit e6ab6cc55ca02e6527da36e9a188bad9aa23b318
Subproject commit a21b6552802953da38d3c180cf7043e4e1af611b