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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user