Skip to content

Commit 2af9448

Browse files
committed
not necessary to find the default again
1 parent 50530fa commit 2af9448

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • source/lib/batchGenerators/variableFontsGenerator

source/lib/batchGenerators/variableFontsGenerator/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,9 @@ def makeMasterOnDefaultLocation(self):
279279
self.report.indent()
280280
# there is no master at the default location
281281
# change the defaults of each axis so it fits with a given master
282-
defaulSource = self.operator.findDefault()
283-
neutralLocation = defaulSource.location
284282
for axis in self.operator.axes:
285-
axis.default = axis.map_backward(neutralLocation[axis.name])
286-
self.report.writeDict(neutralLocation)
283+
axis.default = axis.map_backward(defaultLocation[axis.name])
284+
self.report.writeDict(defaultLocation)
287285
self.report.dedent()
288286
self.report.newLine()
289287

0 commit comments

Comments
 (0)