private void CloneModifier() { if (CurrentStep == null || CurrentStep.Modifiers.Count == 0) { return; } CurrentStep.AddModifier(CurrentModifier.Clone()); SelectModifier(CurrentStep.Modifiers.Count - 1); }
private void CloneModifierZeroSynced() { if (CurrentStep == null || CurrentStep.Modifiers.Count == 0) { return; } if (CurrentModifier?.Modifier == null) { return; } var m = CurrentModifier.Clone(Utilities.CloneZero); m.ModifierSync = new OtherModifierSyncedModifier( CurrentModifier.Modifier); CurrentStep.AddModifier(m); SelectModifier(CurrentStep.Modifiers.Count - 1); }