Commit f2e99826 by Rémi Verschelde Committed by GitHub

Merge pull request #7422 from lonesurvivor/master

Improvement to y_sort: make clear which item has to be drawn first
parents 8acd0583 8b8807e3
......@@ -44,7 +44,10 @@ public:
_FORCE_INLINE_ bool operator()(const Item* p_left,const Item* p_right) const {
return p_left->xform.elements[2].y < p_right->xform.elements[2].y;
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;
}
};
......
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