From 9bb5616061d823fa3632b0d99ba177ac2de74ade Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 29 Sep 2020 07:43:50 -0400 Subject: set invisible args to default values before write --- grapher/Models/Options/ApplyOptions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'grapher/Models/Options/ApplyOptions.cs') diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs index 51c80ea..c2ed498 100644 --- a/grapher/Models/Options/ApplyOptions.cs +++ b/grapher/Models/Options/ApplyOptions.cs @@ -89,14 +89,14 @@ namespace grapher.Models.Options }; } - public Vec2 GetUpdatedArgs(ref /*readonly*/ Vec2 last) + public Vec2 GetArgs() { - var xArgs = OptionSetX.GenerateArgs(ref last.x); + var xArgs = OptionSetX.GenerateArgs(); return new Vec2 { x = xArgs, - y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs(ref last.y) + y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs() }; } -- cgit v1.2.3