mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Revert "small improvement to y_sort: make clear which item has to be drawn first when two have the same y-coordinate"
This reverts commit 4118b21e43
.
Same rationale as previous revert.
This commit is contained in:
parent
86b0669f4c
commit
ed518ff713
@ -407,10 +407,7 @@ class VisualServerRaster : public VisualServer {
|
||||
|
||||
_FORCE_INLINE_ bool operator()(const CanvasItem* p_left,const CanvasItem* 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;
|
||||
return p_left->xform.elements[2].y < p_right->xform.elements[2].y;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user