When drawing edges as pipes use the selected color
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 27 Jul 2011 13:41:40 -0700
changeset 20 0b7b52941b22
parent 19 c1c2dda0c427
child 21 063f99363534
When drawing edges as pipes use the selected color
edges.py
--- a/edges.py	Tue Jul 26 13:57:48 2011 -0700
+++ b/edges.py	Wed Jul 27 13:41:40 2011 -0700
@@ -54,8 +54,6 @@
         glEnd()
 
     def draw_pipes(self):
-        r,g,b,a = self.color.getRgb()
-        glColor3f(r,g,b)
         for (u,v) in self.edges:
             glePolyCylinder([(u.x, u.y, u.z),
                              (u.x, u.y, u.z),