changeset 1071:2f492b4ac301

put curve items under manipulator items Ignore-this: b608d7b5749f5b0a3551f5f23499d0e0
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 02 Jun 2014 07:47:00 +0000
parents b281ee32c785
children e6121f8a9f87
files light9/curvecalc/curveview.py
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/light9/curvecalc/curveview.py	Mon Jun 02 07:46:55 2014 +0000
+++ b/light9/curvecalc/curveview.py	Mon Jun 02 07:47:00 2014 +0000
@@ -730,6 +730,7 @@
         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 @@
                 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),