projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58b13aa
)
paint-volume: Use the correct coordinate for axis alignment
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Mon, 28 May 2012 13:07:04 +0000
(14:07 +0100)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Mon, 28 May 2012 14:22:54 +0000
(15:22 +0100)
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
patch
|
blob
|
history
diff --git
a/clutter/clutter-paint-volume.c
b/clutter/clutter-paint-volume.c
index
725be79
..
ba7abb8
100644
(file)
--- 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;