Changeset - 2f492b4ac301
[Not reviewed]
default
0 1 0
Drew Perttula - 11 years ago 2014-06-02 07:47:00
drewp@bigasterisk.com
put curve items under manipulator items
Ignore-this: b608d7b5749f5b0a3551f5f23499d0e0
1 file changed with 12 insertions and 8 deletions:
0 comments (0 inline, 0 general)
light9/curvecalc/curveview.py
Show inline comments
 
@@ -730,6 +730,7 @@ class Curveview(object):
 
        if getattr(self, 'curveGroup', None):
 
            self.curveGroup.remove()
 
        self.curveGroup = GooCanvas.CanvasGroup(parent=self.canvas.get_root_item())
 
        self.curveGroup.lower(None)
 

	
 
        self.canvas.set_property("background-color",
 
                                 "gray20" if self.curve.muted else "black")
 
@@ -839,14 +840,17 @@ class Curveview(object):
 
                areapts.insert(0, (0, areapts[0][1]))
 
                areapts.append((self.canvas.props.x2, areapts[-1][1]))
 
            polyline_new_line(parent=self.curveGroup,
 
                               points=Points(
 
                                   [(areapts[0][0], base)] +
 
                                   areapts +
 
                                   [(areapts[-1][0], base)]),
 
                               close_path=True,
 
                               line_width=0,
 
                               fill_color="green",
 
                               )
 
                              points=Points(
 
                                  [(areapts[0][0], base)] +
 
                                  areapts +
 
                                  [(areapts[-1][0], base)]),
 
                              close_path=True,
 
                              line_width=0,
 
                              # transparent as a workaround for
 
                              # covering some selectmanips (which
 
                              # become unclickable)
 
                              fill_color_rgba=0x00800080,
 
            )
 

	
 
        self.pl = polyline_new_line(parent=self.curveGroup,
 
                                     points=Points(linepts),
0 comments (0 inline, 0 general)