paint-volumes: remove alignment constraint for _set_origin
The implementation for clutter_paint_volume_set_origin can cope with volumes that are not axis aligned so this remove the is_axis_aligned assertion.
This commit is contained in:
parent
30eb3be781
commit
394512b274
@ -190,7 +190,6 @@ clutter_paint_volume_set_origin (ClutterPaintVolume *pv,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
g_return_if_fail (pv != NULL);
|
g_return_if_fail (pv != NULL);
|
||||||
g_return_if_fail (pv->is_axis_aligned);
|
|
||||||
|
|
||||||
dx = origin->x - pv->vertices[0].x;
|
dx = origin->x - pv->vertices[0].x;
|
||||||
dy = origin->y - pv->vertices[0].y;
|
dy = origin->y - pv->vertices[0].y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user