X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=share%2Fextensions%2Faddnodes.py;h=3a8bebe668fb5e4cebb33652e91133b057b2ac49;hb=04ae50eb1e8d1b509dc91d0475039bdae0077469;hp=af59a0d67ca559f86c420f847494c94b262460e9;hpb=018bf36170c9eac7dcd364b21390a24c819d0511;p=inkscape.git diff --git a/share/extensions/addnodes.py b/share/extensions/addnodes.py index af59a0d67..3a8bebe66 100644 --- a/share/extensions/addnodes.py +++ b/share/extensions/addnodes.py @@ -70,7 +70,7 @@ class SplitIt(inkex.Effect): dest="segments", default=2, help="Number of segments to divide the path into") self.OptionParser.add_option("--max", - action="store", type="int", + action="store", type="float", dest="max", default=2, help="Number of segments to divide the path into") self.OptionParser.add_option("--method", @@ -108,5 +108,9 @@ class SplitIt(inkex.Effect): node.set('d',cubicsuperpath.formatPath(new)) -e = SplitIt() -e.affect() +if __name__ == '__main__': + e = SplitIt() + e.affect() + + +# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99