Re-enable DNA export

This commit is contained in:
DarkPhoenix
2019-05-04 02:26:09 +03:00
parent 5f9bf4a861
commit 4b6c881dca
2 changed files with 1 additions and 5 deletions

View File

@@ -60,9 +60,9 @@ class CopySelectDialog(wx.Dialog):
("EFT", (CopySelectDialog.copyFormatEft, EFT_OPTIONS)),
("MultiBuy", (CopySelectDialog.copyFormatMultiBuy, MULTIBUY_OPTIONS)),
("ESI", (CopySelectDialog.copyFormatEsi, None)),
("DNA", (CopySelectDialog.copyFormatDna, None)),
("EFS", (CopySelectDialog.copyFormatEfs, None)),
# ("XML", (CopySelectDialog.copyFormatXml, None)),
# ("DNA", (CopySelectDialog.copyFormatDna, None)),
))
defaultFormatOptions = {}

View File

@@ -135,7 +135,6 @@ def exportDna(fit, callback):
subsystems = [] # EVE cares which order you put these in
mods = OrderedDict()
charges = OrderedDict()
sFit = svcFit.getInstance()
for mod in fit.modules:
if not mod.isEmpty:
if mod.slot == FittingSlot.SUBSYSTEM:
@@ -163,9 +162,6 @@ def exportDna(fit, callback):
for fighter in fit.fighters:
dna += ":{0};{1}".format(fighter.itemID, fighter.amountActive)
for fighter in fit.fighters:
dna += ":{0};{1}".format(fighter.itemID, fighter.amountActive)
for cargo in fit.cargo:
# DNA format is a simple/dumb format. As CCP uses the slot information of the item itself
# without designating slots in the DNA standard, we need to make sure we only include