Skip to content

Commit

Permalink
Merge pull request #32 from ziegenberg/update-extension-for-1-0
Browse files Browse the repository at this point in the history
Further update extension for 1.0
  • Loading branch information
Klowner authored Jan 11, 2021
2 parents 02c1378 + fa6f817 commit f898f2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions applytransform.inx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Apply Transform</_name>
<name>Apply Transform</name>
<id>com.klowner.filter.applytransform</id>
<dependency type="executable" location="extensions">applytransform.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Modify Path" />
<submenu name="Modify Path" />
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">applytransform.py</command>
<command location="inx" interpreter="python">applytransform.py</command>
</script>
</inkscape-extension>
4 changes: 2 additions & 2 deletions applytransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
NULL_TRANSFORM = Transform([[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]])


class ApplyTransform(inkex.Effect):
class ApplyTransform(inkex.EffectExtension):
def __init__(self):
inkex.Effect.__init__(self)
super(ApplyTransform, self).__init__()

def effect(self):
if self.svg.selected:
Expand Down

0 comments on commit f898f2b

Please sign in to comment.