Reverting expression caching changes.

The caching should happen in the sheet object not the property
This commit is contained in:
Lars Brubaker 2022-09-15 13:26:28 -07:00
parent c1f7817eb3
commit abb56a5c76
8 changed files with 39 additions and 58 deletions

View file

@ -53,7 +53,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
{
foreach (var expression in SheetObject3D.GetActiveExpressions(item, expansion.key, false))
{
var expressionValue = expression.GetExpression(this.RebuildLocked);
var expressionValue = expression.Expression;
expression.Expression = expressionValue.Replace(expansion.key, SheetObject3D.RetrieveArrayIndex(item, expansion.index).ToString());
}