Respect command fit state (#1100)

* Respect command fit state in calculations

* Utilize `getCommandInfo` instead (we do it this way for projections. Consistency, fuck yeah!)
This commit is contained in:
Ryan Holmes
2017-04-02 23:20:31 -05:00
committed by GitHub
parent d2af4f7d9c
commit 9d029b46b1

View File

@@ -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