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

@ -38,7 +38,7 @@ namespace MatterHackers.MatterControl.DesignTools
public string Value(IObject3D owner)
{
var rebuilding = owner.RebuildLocked;
var value = SheetObject3D.EvaluateExpression<string>(owner, GetExpression(rebuilding));
var value = SheetObject3D.EvaluateExpression<string>(owner, Expression);
if (rebuilding)
{
ExpressionValueAtLastRebuild = value.ToString();