Properly handle projecting an abyssal module (we now copy modules instead of using the same item ID)
This commit is contained in:
@@ -109,7 +109,7 @@ class ProjectedView(d.Display):
|
||||
dstRow, _ = self.HitTest((x, y))
|
||||
# Gather module information to get position
|
||||
module = fit.modules[int(data[1])]
|
||||
sFit.project(fit.ID, module.item.ID)
|
||||
sFit.project(fit.ID, module)
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fit.ID))
|
||||
elif data[0] == "market":
|
||||
sFit = Fit.getInstance()
|
||||
|
||||
@@ -379,7 +379,10 @@ class Fit(object):
|
||||
thing = eos.db.getItem(thing,
|
||||
eager=("attributes", "group.category"))
|
||||
|
||||
if isinstance(thing, FitType):
|
||||
if isinstance(thing, es_Module):
|
||||
thing = copy.deepcopy(thing)
|
||||
fit.projectedModules.append(thing)
|
||||
elif isinstance(thing, FitType):
|
||||
if thing in fit.projectedFits:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user