Revert & disable case with two contradicting inspections

Leaving the `false` default value without the suppression triggers
`RedundantArgumentDefaultValue`, while removing it triggers
`BaseMethodCallWithDefaultParameter`.

Disable the former, because a single redundant parameter is less bad
than silent breakage if the default value of `propagateChildren` in the
base method ever changes.
This commit is contained in:
Bartłomiej Dach 2021-07-05 20:21:44 +02:00
parent e1c646b9b2
commit 8e102280b7
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ public override void ClearTransformsAfter(double time, bool propagateChildren =
public override void ApplyTransformsAt(double time, bool propagateChildren = false)
{
// For the same reasons as above w.r.t rewinding, we shouldn't propagate to children here either.
base.ApplyTransformsAt(time);
// ReSharper disable once RedundantArgumentDefaultValue - removing the "redundant" default value triggers BaseMethodCallWithDefaultParameter
base.ApplyTransformsAt(time, false);
}
private bool tracking;