diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-09-30 17:02:57 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-09-30 17:06:28 +0100 |
commit | dba6a39dce99a691e9dca112db14152fe72c6df6 (patch) | |
tree | 83a814a02258b45e9af2c7d454f30363dc904127 | |
parent | 7247cbf1da1e604244c4cf104b2c6ba72b340071 (diff) | |
download | clutter-dba6a39dce99a691e9dca112db14152fe72c6df6.tar.gz |
paint-volume: Don't try to complete a completed volume
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 <robert@linux.intel.com>
-rw-r--r-- | clutter/clutter-paint-volume.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |