Commit 4dc30c25 authored by Robert Bragg's avatar Robert Bragg

paint-volumes: avoid is_complete assert in _axis_align

The removes the pv->is_complete assertion from
_clutter_paint_volume_axis_align() and instead if the volume isn't
complete it calls _clutter_paint_volume_complete().
parent e6c58b7f
......@@ -762,8 +762,6 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
if (pv->is_empty)
return;
g_return_if_fail (pv->is_complete);
if (G_LIKELY (pv->is_axis_aligned))
return;
......@@ -775,6 +773,9 @@ _clutter_paint_volume_axis_align (ClutterPaintVolume *pv)
return;
}
if (!pv->is_complete)
_clutter_paint_volume_complete (pv);
origin = pv->vertices[0];
max_x = pv->vertices[0].x;
max_y = pv->vertices[0].y;
......
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