From dba6a39dce99a691e9dca112db14152fe72c6df6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 30 Sep 2011 17:02:57 +0100 Subject: paint-volume: Don't try to complete a completed volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we do project() → get_bounding_box(), we'll try to complete the volume twice, which whacks out all the lazily computed vertices. Reviewed-by: Robert Bragg --- clutter/clutter-paint-volume.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c index 7514c13fa..512c49c3d 100644 --- a/clutter/clutter-paint-volume.c +++ b/clutter/clutter-paint-volume.c @@ -654,6 +654,9 @@ _clutter_paint_volume_complete (ClutterPaintVolume *pv) if (pv->is_empty) return; + if (pv->is_complete) + return; + /* Find the vector that takes us from any vertex on the left face to * the corresponding vertex on the right face. */ dx_l2r = pv->vertices[1].x - pv->vertices[0].x; -- cgit v1.2.1