Skip to content

Commit

Permalink
not necessary to find the default again
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Jul 9, 2024
1 parent 50530fa commit 2af9448
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/lib/batchGenerators/variableFontsGenerator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,9 @@ def makeMasterOnDefaultLocation(self):
self.report.indent()
# there is no master at the default location
# change the defaults of each axis so it fits with a given master
defaulSource = self.operator.findDefault()
neutralLocation = defaulSource.location
for axis in self.operator.axes:
axis.default = axis.map_backward(neutralLocation[axis.name])
self.report.writeDict(neutralLocation)
axis.default = axis.map_backward(defaultLocation[axis.name])
self.report.writeDict(defaultLocation)
self.report.dedent()
self.report.newLine()

Expand Down

0 comments on commit 2af9448

Please sign in to comment.