Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools.py b/tools.py
index 4b10d99..71fef08 100644
--- a/tools.py
+++ b/tools.py
@@ -243,9 +243,7 @@ class MagicPenTool(Tool):
elif event.type == MOUSEBUTTONUP and event.button == 1:
if self.vertices and self.safe:
self.game.world.add.complexPoly(self.vertices, dynamic=True, density=1.0, restitution=0.16, friction=0.5)
- self.vertices = None
- else:
- self.vertices = None
+ self.vertices = None
elif event.type == MOUSEMOTION and self.vertices:
self.vertices.append(event.pos)
if distance(event.pos,self.vertices[0]) >= 55 and len(self.vertices) > 3: