Commit 6377d364 authored by Emmanuele Bassi's avatar Emmanuele Bassi

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: default avatarRobert Bragg <robert@linux.intel.com>
parent 3372a023
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment