Fix T81374: SVG import: transform skewX and skewY swapped

When importing an SVG file that uses skewX and skewY, they are swapped.
This patch swaps the skewX and skewY functions and hence the problem is resolved.

Differential Revision: https://developer.blender.org/D13036
This commit is contained in:
Diptangshu Dey 2021-11-05 11:36:17 +01:00 committed by Sergey Sharybin
parent 63b8ef77a7
commit d169df69b3
Notes: blender-bot 2023-02-14 18:47:50 +01:00
Referenced by issue #81374, SVG import: transform skewX and skewY swapped
1 changed files with 3 additions and 3 deletions

View File

@ -273,9 +273,9 @@ def SVGTransformScale(params):
return m
def SVGTransformSkewX(params):
def SVGTransformSkewY(params):
"""
skewX SVG transform command
skewY SVG transform command
"""
ang = float(params[0]) * pi / 180.0
@ -285,7 +285,7 @@ def SVGTransformSkewX(params):
(0.0, 0.0, 1.0))).to_4x4()
def SVGTransformSkewY(params):
def SVGTransformSkewX(params):
"""
skewX SVG transform command
"""