From f6ce2a93881f7faf00e6eeb27bbce50904714ffa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 28 May 2012 14:07:04 +0100 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c index 725be7917..ba7abb84b 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; -- cgit v1.2.1