Commit fbe76b6d authored by Keegi's avatar Keegi

Fixed faded layer draw order in gviz

parent 7245e54b
...@@ -146,10 +146,10 @@ class gviz(wx.Panel): ...@@ -146,10 +146,10 @@ class gviz(wx.Panel):
dc.DrawLineList(l,self.pens[i]) dc.DrawLineList(l,self.pens[i])
return return
if self.layerindex<len(self.layers) and self.layers[self.layerindex] in self.lines.keys(): if self.layerindex<len(self.layers) and self.layers[self.layerindex] in self.lines.keys():
for i in range(min(self.layerindex,6))[-6:]: for layer_i in xrange(max(0,self.layerindex-6),self.layerindex):
#print i, self.layerindex, self.layerindex-i #print i, self.layerindex, self.layerindex-i
l=map(scaler,self.lines[self.layers[self.layerindex-i-1]]) l=map(scaler,self.lines[self.layers[layer_i]])
dc.DrawLineList(l,self.fades[i]) dc.DrawLineList(l,self.fades[self.layerindex-layer_i-1])
l=map(scaler,self.lines[self.layers[self.layerindex]]) l=map(scaler,self.lines[self.layers[self.layerindex]])
dc.DrawLineList(l,self.pens[self.layers[self.layerindex]]) dc.DrawLineList(l,self.pens[self.layers[self.layerindex]])
l=map(scaler,self.hilight) l=map(scaler,self.hilight)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment