Skip to content

Commit

Permalink
Fix equation name not being copied
Browse files Browse the repository at this point in the history
  • Loading branch information
VolcanicArts committed Aug 12, 2024
1 parent 40520cd commit 7e35d17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VRCOSC.Modules/Maths/EquationModuleSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public Equation()

public Equation(Equation other)
{
Name.Value = other.Name.Value;
TriggerParameters.AddRange(other.TriggerParameters.Select(triggerParameter => new Observable<string>(triggerParameter.Value)));
EquationString.Value = other.EquationString.Value;
OutputParameter.Value = other.OutputParameter.Value;
Expand All @@ -51,6 +52,6 @@ public bool Equals(Equation? other)
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;

return TriggerParameters.SequenceEqual(other.TriggerParameters) && EquationString.Equals(other.EquationString) && OutputParameter.Equals(other.OutputParameter);
return Name.Equals(other.Name) && TriggerParameters.SequenceEqual(other.TriggerParameters) && EquationString.Equals(other.EquationString) && OutputParameter.Equals(other.OutputParameter);
}
}

0 comments on commit 7e35d17

Please sign in to comment.