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:
parent
3372a0233e
commit
6377d3646b
@ -654,6 +654,9 @@ _clutter_paint_volume_complete (ClutterPaintVolume *pv)
|
|||||||
if (pv->is_empty)
|
if (pv->is_empty)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (pv->is_complete)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Find the vector that takes us from any vertex on the left face to
|
/* Find the vector that takes us from any vertex on the left face to
|
||||||
* the corresponding vertex on the right face. */
|
* the corresponding vertex on the right face. */
|
||||||
dx_l2r = pv->vertices[1].x - pv->vertices[0].x;
|
dx_l2r = pv->vertices[1].x - pv->vertices[0].x;
|
||||||
|
Loading…
Reference in New Issue
Block a user