Skip to content

Commit 12b68f0

Browse files
authored
Merge pull request #867 from justvanrossum/issue865
Take discrete axes into account when checking for feature compatibility
2 parents 8ec3ef3 + de46064 commit 12b68f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ufo2ft/_compilers/baseCompiler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ def _compileNeededSources(self, designSpaceDoc):
326326

327327
# If the feature files are compatible between the sources, we can save
328328
# time by building a variable feature file right at the end.
329-
can_optimize_features = self.variableFeatures and _featuresCompatible(
330-
designSpaceDoc
329+
can_optimize_features = self.variableFeatures and all(
330+
_featuresCompatible(doc) for doc in interpolableSubDocs
331331
)
332332
if can_optimize_features:
333333
self.logger.info("Features are compatible across masters; building later")

0 commit comments

Comments
 (0)