diff --git a/servers/visual/visual_server_raster.h b/servers/visual/visual_server_raster.h index 71e91b8dfbb..0b1bf8618e6 100644 --- a/servers/visual/visual_server_raster.h +++ b/servers/visual/visual_server_raster.h @@ -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; } };