[clutter/clutter-1.8] paint-volume: Don't try to complete a completed volume
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.8] paint-volume: Don't try to complete a completed volume
- Date: Fri, 30 Sep 2011 16:06:38 +0000 (UTC)
commit dba6a39dce99a691e9dca112db14152fe72c6df6
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Sep 30 17:02:57 2011 +0100
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>
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 7514c13..512c49c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]