Merge pull request #7422 from lonesurvivor/master

Improvement to y_sort: make clear which item has to be drawn first
This commit is contained in:
Rémi Verschelde 2017-01-03 14:45:16 +01:00 committed by GitHub
commit f2e99826c0

View file

@ -44,6 +44,9 @@ public:
_FORCE_INLINE_ bool operator()(const Item* p_left,const Item* p_right) const {
if(Math::abs(p_left->xform.elements[2].y - p_right->xform.elements[2].y) < CMP_EPSILON )
return p_left->xform.elements[2].x < p_right->xform.elements[2].x;
else
return p_left->xform.elements[2].y < p_right->xform.elements[2].y;
}
};