Fix simpletransform deprecation warnings

This commit is contained in:
Drewler
2020-07-15 03:23:49 +02:00
parent d4ed817359
commit e19a069d5b

View File

@@ -28,7 +28,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import inkex
from inkex.transforms import Transform
from inkex.paths import Path
import simpletransform
import os
import math
@@ -927,8 +926,8 @@ class LaserGcode(inkex.Effect):
while (g != root):
if 'transform' in list(g.keys()):
t = g.get('transform')
t = simpletransform.parseTransform(t)
trans = simpletransform.composeTransform(t, trans) if trans != [] else t
t = [list(row) for row in Transform(t).matrix]
trans = [list(row) for row in (Transform(t) * Transform(trans)).matrix] if trans != [] else t
print_(trans)
g = g.getparent()
return trans