Do not recalc fits on tab switch (#1105)
* Do not recalc fits if they are already calculated. Fits that are projected onto other fits recursively set their victims to `calculated=False` so that the victim will re calculate when it loads again. * Reset boosted fits when calculating a fit that is boosting others. Also, remove semicolon due to habit :x * Develop a `__resetDependantCalc()` which will reset any fits that are immediately affected by the current fits calculation.
This commit is contained in:
@@ -206,7 +206,9 @@ class Fit(object):
|
||||
fit.damagePattern = self.pattern
|
||||
|
||||
eos.db.commit()
|
||||
self.recalc(fit, withBoosters=True)
|
||||
|
||||
if not fit.calculated:
|
||||
self.recalc(fit, withBoosters=True)
|
||||
|
||||
def getFit(self, fitID, projected=False, basic=False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user