When re-enabling restrictions only delete incompatible modules

Hardpoints past limit will show up highlighted red.
This commit is contained in:
WatchMeCalculate
2018-06-01 02:19:14 -07:00
parent cc586f6532
commit 87660246b6

View File

@@ -973,7 +973,7 @@ class Fit(object):
# remove invalid modules when switching back to enabled fitting restrictions
if not fit.ignoreRestrictions:
for m in fit.modules:
if not m.isEmpty and not m.fits(fit):
if not m.isEmpty and not m.fits(fit, False):
self.removeModule(fit.ID, m.modPosition)
eos.db.commit()