Skip to content

Commit

Permalink
Fix simpletransform deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drewler committed Jul 15, 2020
1 parent d4ed817 commit e19a069
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import inkex
from inkex.transforms import Transform
from inkex.paths import Path
import simpletransform

import os
import math
Expand Down Expand Up @@ -927,8 +926,8 @@ def get_transforms(self, g):
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
Expand Down

0 comments on commit e19a069

Please sign in to comment.