[clutter/clutter-1.10] paint-volume: Use the correct coordinate for axis alignment
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.10] paint-volume: Use the correct coordinate for axis alignment
- Date: Mon, 28 May 2012 15:56:34 +0000 (UTC)
commit f6ce2a93881f7faf00e6eeb27bbce50904714ffa
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon May 28 14:07:04 2012 +0100
paint-volume: Use the correct coordinate for axis alignment
The z coordinate of the origin should be checked against the same
coordinate of the vertex behind it. Given that most actors are flat
surfaces, this check should always succeed.
https://bugzilla.gnome.org/show_bug.cgi?id=675396
clutter/clutter-paint-volume.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c
index 725be79..ba7abb8 100644
--- a/clutter/clutter-paint-volume.c
+++ b/clutter/clutter-paint-volume.c
@@ -908,7 +908,7 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
if (G_LIKELY (pv->vertices[0].x == pv->vertices[1].x &&
pv->vertices[0].y == pv->vertices[3].y &&
- pv->vertices[0].z == pv->vertices[4].y))
+ pv->vertices[0].z == pv->vertices[4].z))
{
pv->is_axis_aligned = TRUE;
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]