[varLib.models] Change interpolateFromMasters implementation
This commit is contained in:
parent
381b55b936
commit
86b2bf62e6
@ -526,8 +526,8 @@ class VariationModel(object):
|
|||||||
|
|
||||||
def interpolateFromMasters(self, loc, masterValues, *, round=noRound):
|
def interpolateFromMasters(self, loc, masterValues, *, round=noRound):
|
||||||
"""Interpolate from master-values, at location loc."""
|
"""Interpolate from master-values, at location loc."""
|
||||||
deltas = self.getDeltas(masterValues, round=round)
|
scalars = self.getMasterScalars(loc)
|
||||||
return self.interpolateFromDeltas(loc, deltas)
|
return self.interpolateFromMastersAndMasterScalars(masterValues, scalars)
|
||||||
|
|
||||||
def interpolateFromMastersAndScalars(self, masterValues, scalars, *, round=noRound):
|
def interpolateFromMastersAndScalars(self, masterValues, scalars, *, round=noRound):
|
||||||
"""Interpolate from master-values, and scalars fetched from
|
"""Interpolate from master-values, and scalars fetched from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user