From 9d029b46b1143fa050a1f3dc0be8c44eaac5c8ba Mon Sep 17 00:00:00 2001 From: Ryan Holmes Date: Sun, 2 Apr 2017 23:20:31 -0500 Subject: [PATCH] Respect command fit state (#1100) * Respect command fit state in calculations * Utilize `getCommandInfo` instead (we do it this way for projections. Consistency, fuck yeah!) --- eos/saveddata/fit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index 0f6743d0b..d6f1e8ae7 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -661,10 +661,11 @@ class Fit(object): if self.commandFits and not withBoosters: for fit in self.commandFits: - if self == fit: + commandInfo = fit.getCommandInfo(self.ID) + if not commandInfo.active or self == commandInfo.booster_fit: continue - fit.calculateModifiedAttributes(self, True) + commandInfo.booster_fit.calculateModifiedAttributes(self, True) # If we're not explicitly asked to project fit onto something, # set self as target fit