mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Field enum cleanup, part 1
This commit is contained in:
@@ -555,9 +555,6 @@ namespace SabreTools.Library.DatItems
|
||||
if (fields.Contains(Field.DatItem_Part_Interface) && Part != null)
|
||||
Part.Interface = null;
|
||||
|
||||
if (fields.Contains(Field.DatItem_Features) && Part != null)
|
||||
Part.Features = null;
|
||||
|
||||
// TODO: Handle DatItem_Feature*
|
||||
|
||||
#endregion
|
||||
@@ -694,13 +691,7 @@ namespace SabreTools.Library.DatItems
|
||||
Part.Interface = newItem.Part?.Interface;
|
||||
}
|
||||
|
||||
if (fields.Contains(Field.DatItem_Features))
|
||||
{
|
||||
if (Part == null)
|
||||
Part = new Part();
|
||||
|
||||
Part.Features = newItem.Part?.Features;
|
||||
}
|
||||
// TODO: Handle DatItem_Part_Feature*
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user