Code

make more sense of the rotation direction param
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 11 Feb 2006 06:39:45 +0000 (06:39 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 11 Feb 2006 06:39:45 +0000 (06:39 +0000)
share/extensions/whirl.inx
share/extensions/whirl.py

index a92d50328a8cfefd370161451861af9cf952e760..85000415fbf0e6048d05761ed4638c5f26ebd952 100644 (file)
@@ -6,7 +6,7 @@
        <param name="centerx" type="float" min="0.0" max="10000.0" _gui-text="Center X">100.0</param>
        <param name="centery" type="float" min="0.0" max="10000.0" _gui-text="Center Y">100.0</param>
        <param name="whirl" type="float" min="0.00" max="1000.00" _gui-text="Amount of whirl">100.0</param>
-       <param name="rotation" type="boolean" _gui-text="Direction of rotation">true</param>
+       <param name="rotation" type="boolean" _gui-text="Rotation is clockwise">true</param>
     <effect>
                <object-type>path</object-type>
                 <effects-menu>
index 35dbc0840bab7027118509fb3053efcd2c42045c..4b234d0143f4b1d0a8f5ff3c0179449afe46bf35 100644 (file)
@@ -39,9 +39,9 @@ class Whirl(inkex.Effect):
                                                help="direction of rotation")
        def effect(self):
                for id, node in self.selected.iteritems():
-                       rotation = 1
+                       rotation = -1
                        if self.options.rotation == True:
-                               rotation = -1
+                               rotation = 1
                        whirl = self.options.whirl / 1000
                        if node.tagName == 'path':
                                d = node.attributes.getNamedItem('d')