Inline temporary variable
This commit is contained in:
parent
41c7ca2316
commit
1cb7b42bbc
1 changed files with 4 additions and 5 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue