1
0
Fork 0

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>
This commit is contained in:
Emmanuele Bassi 2011-09-30 17:02:57 +01:00
parent 3372a0233e
commit 6377d3646b

View file

@ -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;