mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-14 20:54:17 +01:00
Fix clone not copying parameter rules.
This commit is contained in:
parent
d57d40bd59
commit
c245b30eaa
2 changed files with 7 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ public sealed class Design : DesignBase, ISavable
|
|||
internal Design(Design other)
|
||||
: base(other)
|
||||
{
|
||||
Tags = other.Tags.ToArray();
|
||||
Tags = [.. other.Tags];
|
||||
Description = other.Description;
|
||||
AssociatedMods = new SortedList<Mod, ModSettings>(other.AssociatedMods);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,11 +40,12 @@ public class DesignBase
|
|||
|
||||
internal DesignBase(DesignBase clone)
|
||||
{
|
||||
_designData = clone._designData;
|
||||
CustomizeSet = clone.CustomizeSet;
|
||||
ApplyCustomize = clone.ApplyCustomizeRaw;
|
||||
ApplyEquip = clone.ApplyEquip & EquipFlagExtensions.All;
|
||||
_designFlags = clone._designFlags & (DesignFlags)0x0F;
|
||||
_designData = clone._designData;
|
||||
CustomizeSet = clone.CustomizeSet;
|
||||
ApplyCustomize = clone.ApplyCustomizeRaw;
|
||||
ApplyEquip = clone.ApplyEquip & EquipFlagExtensions.All;
|
||||
ApplyParameters = clone.ApplyParameters & CustomizeParameterExtensions.All;
|
||||
_designFlags = clone._designFlags & (DesignFlags)0x0F;
|
||||
}
|
||||
|
||||
/// <summary> Ensure that the customization set is updated when the design data changes. </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue