Skip to content

Commit

Permalink
fix bug on triangles preview
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang committed May 25, 2014
1 parent 5fcaeb8 commit e799ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vectorbender.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def updatePreview(self):
#draw the triangles
for i,tri in enumerate(self.delaunay.triangles):
self.rubberBands[2].addPoint( self.ptsA[tri[0]], False, i )
self.rubberBands[2].addPoint( self.ptsA[tri[0]], False, i )
self.rubberBands[2].addPoint( self.ptsA[tri[0]], True, i ) #TODO : this refreshes the rubber band on each triangle, it should be updated only once after this loop
self.rubberBands[2].addPoint( self.ptsA[tri[1]], False, i )
self.rubberBands[2].addPoint( self.ptsA[tri[2]], True, i ) #TODO : this refreshes the rubber band on each triangle, it should be updated only once after this loop

def run(self):

Expand Down

0 comments on commit e799ca8

Please sign in to comment.