Skip to content

Commit 46d38bc

Browse files
committed
copy the whole operator + all source font objects
1 parent 33e73e7 commit 46d38bc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

info.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ developer: TypeMyType
33
developerURL: http://typemytype.com
44
launchAtStartUp: true
55
mainScript: main.py
6-
version: '2.5b4'
6+
version: '2.5b5'
77
addToMenu: []
88
html: true
99
requiresVersionMajor: '4'

source/lib/batchGenerators/variableFontsGenerator/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,11 @@ def build(root, generateOptions, settings, progress, report):
482482
operator = BatchEditorOperator(sourceDesignspace)
483483
else:
484484
operator = sourceDesignspace
485+
operator.doc = operator.doc.deepcopyExceptFonts()
486+
# copy all sources
487+
for key, font in list(operator.fonts.items()):
488+
operator.fonts[key] = font.copy()
489+
485490
# loop over all interpolable operators based on the given variable fonts
486491
for name, interpolableOperator in operator.getInterpolableUFOOperators(useVariableFonts=True):
487492
for binaryFormat, postProcessCallback in binaryFormats:

0 commit comments

Comments
 (0)