From 1cb7b42bbca68b78f514b3a22f779c95fa51dc86 Mon Sep 17 00:00:00 2001 From: jlewin Date: Tue, 11 Jun 2019 14:05:35 -0700 Subject: [PATCH] Inline temporary variable --- MatterControlLib/DesignTools/PublicPropertyEditor.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MatterControlLib/DesignTools/PublicPropertyEditor.cs b/MatterControlLib/DesignTools/PublicPropertyEditor.cs index 3684d6f49..fc619765e 100644 --- a/MatterControlLib/DesignTools/PublicPropertyEditor.cs +++ b/MatterControlLib/DesignTools/PublicPropertyEditor.cs @@ -390,14 +390,13 @@ namespace MatterHackers.MatterControl.DesignTools else if (propertyValue is DirectionAxis directionAxis) { rowContainer = CreateSettingsColumn(property); - var newDirectionVector = new DirectionVector() - { - Normal = directionAxis.Normal - }; var field1 = new DirectionVectorField(theme); field1.Initialize(0); - field1.SetValue(newDirectionVector); + field1.SetValue(new DirectionVector() + { + Normal = directionAxis.Normal + }); rowContainer.AddChild(new SettingsRow("Axis".Localize(), null, field1.Content, theme));