File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ public void SetActiveValues(ref AccelArgs args)
271
271
GrowthRate . SetActiveValue ( args . growthRate ) ;
272
272
Smooth . SetActiveValue ( args . smooth ) ;
273
273
Scale . SetActiveValue ( args . scale ) ;
274
- Limit . SetActiveValue ( args . limit ) ;
274
+ Limit . SetActiveValue ( ( args . mode == AccelMode . motivity ) ? args . motivity : args . limit ) ;
275
275
PowerClassic . SetActiveValue ( args . power ) ;
276
276
Exponent . SetActiveValue ( args . exponent ) ;
277
277
Midpoint . SetActiveValue ( args . midpoint ) ;
@@ -319,7 +319,17 @@ public void SetArgs(ref AccelArgs args)
319
319
if ( Smooth . Visible ) args . smooth = Smooth . Field . Data ;
320
320
if ( Scale . Visible ) args . scale = Scale . Field . Data ;
321
321
if ( Cap . Visible ) args . cap = Cap . Field . Data ;
322
- if ( Limit . Visible ) args . limit = Limit . Field . Data ;
322
+ if ( Limit . Visible )
323
+ {
324
+ if ( args . mode == AccelMode . motivity )
325
+ {
326
+ args . motivity = Limit . Field . Data ;
327
+ }
328
+ else
329
+ {
330
+ args . limit = Limit . Field . Data ;
331
+ }
332
+ }
323
333
if ( PowerClassic . Visible ) args . power = PowerClassic . Field . Data ;
324
334
if ( Exponent . Visible ) args . exponent = Exponent . Field . Data ;
325
335
if ( Offset . Visible ) args . offset = Offset . Field . Data ;
You can’t perform that action at this time.
0 commit comments