From f3e4f52db087ef0fca25e5ac14a9c577a0025fc1 Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Thu, 7 Oct 2021 20:57:27 -0700 Subject: [PATCH] More expressions working --- MatterControlLib/DesignTools/Sheets/SheetObject3D.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MatterControlLib/DesignTools/Sheets/SheetObject3D.cs b/MatterControlLib/DesignTools/Sheets/SheetObject3D.cs index dc79bf180..0a8c1d123 100644 --- a/MatterControlLib/DesignTools/Sheets/SheetObject3D.cs +++ b/MatterControlLib/DesignTools/Sheets/SheetObject3D.cs @@ -343,8 +343,7 @@ namespace MatterHackers.MatterControl.DesignTools int index = 0; foreach (var child in arrayObject.Children) { - if (!(child is OperationSourceContainerObject3D) - && !(child is OperationSourceObject3D)) + if (!(child is OperationSourceObject3D)) { if (child.DescendantsAndSelf().Where(i => i == owner).Any()) { @@ -385,8 +384,9 @@ namespace MatterHackers.MatterControl.DesignTools return stringWithConstants; } - public static T EvaluateExpression(IObject3D owner, string inputExpression) + public static T EvaluateExpression(IObject3D owner, string inExpression) { + var inputExpression = inExpression; var printer = owner.ContainingPrinter(); if (printer != null) {