[VarComposites] Another fix after transform change

This commit is contained in:
Behdad Esfahbod 2023-02-04 11:48:00 -07:00
parent e3a37f07bf
commit 07bc09fb0c

View File

@ -1835,7 +1835,7 @@ class GlyphVarComponent(object):
if (
flags & VarComponentFlags.HAVE_SCALE_X
and flags & VarComponentFlags.HAVE_SCALE_Y
and fl2fi(self.scaleX, 10) == fl2fi(self.scaleY, 10)
and fl2fi(self.transform.scaleX, 10) == fl2fi(self.transform.scaleY, 10)
):
flags |= VarComponentFlags.UNIFORM_SCALE
flags ^= VarComponentFlags.HAVE_SCALE_Y