Always ssign axisValues attr

This commit is contained in:
Just van Rossum 2022-10-12 16:41:50 +02:00
parent f368dcb4dd
commit 115874cb05

View File

@ -244,8 +244,7 @@ class VariationModel(object):
self.origLocations = locations
self.axisOrder = axisOrder if axisOrder is not None else []
self.extrapolate = extrapolate
if extrapolate:
self.axisRanges = self.computeAxisRanges(locations)
self.axisRanges = self.computeAxisRanges(locations) if extrapolate else None
locations = [{k: v for k, v in loc.items() if v != 0.0} for loc in locations]
keyFunc = self.getMasterLocationsSortKeyFunc(