f
This commit is contained in:
parent
4804293a4a
commit
8c11669e7f
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ proc parsePath*(path: string): Path =
|
||||||
|
|
||||||
proc transform*(path: var Path, mat: Mat3) =
|
proc transform*(path: var Path, mat: Mat3) =
|
||||||
## Apply a matrix transform to a path.
|
## Apply a matrix transform to a path.
|
||||||
|
if mat == mat3():
|
||||||
|
return
|
||||||
|
|
||||||
for command in path.commands.mitems:
|
for command in path.commands.mitems:
|
||||||
var mat = mat
|
var mat = mat
|
||||||
if command.kind.isRelative():
|
if command.kind.isRelative():
|
||||||
|
|
Loading…
Reference in a new issue