comparison tools/area_editor.py @ 166:f73aba2e46bd

Remove stale debugging print
author Neil Muller <drnlmuller@gmail.com>
date Tue, 03 Sep 2013 11:21:11 +0200
parents dba8bc454a43
children bb297f3f99f4
comparison
equal deleted inserted replaced
165:dba8bc454a43 166:f73aba2e46bd
98 it's limited as it's a magic point addition""" 98 it's limited as it's a magic point addition"""
99 if len(self.polygons[index]) < 2: 99 if len(self.polygons[index]) < 2:
100 # Too small 100 # Too small
101 return False 101 return False
102 first = self.polygons[index][0] 102 first = self.polygons[index][0]
103 last = self.polygons[index][-1]
104 print first, last
105 print self.fix_angle(index, self.point_to_pygame(first))
106 if self.fix_angle(index, self.point_to_pygame(first)) == first: 103 if self.fix_angle(index, self.point_to_pygame(first)) == first:
107 self.add_point(index, self.point_to_pygame(first)) 104 self.add_point(index, self.point_to_pygame(first))
108 return True 105 return True
109 candidates = [(first[0] + 10 * i, first[1]) for 106 candidates = [(first[0] + 10 * i, first[1]) for
110 i in (-3, -2, -1, 1, 2, 3)] 107 i in (-3, -2, -1, 1, 2, 3)]