1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Order of 2D nodes in tree affects drawing properly again.

This commit is contained in:
Juan Linietsky
2017-06-22 09:32:47 -03:00
parent fb72edf45e
commit 57ebad28a9
2 changed files with 20 additions and 0 deletions

View File

@@ -63,6 +63,14 @@ public:
}
};
struct ItemIndexSort {
_FORCE_INLINE_ bool operator()(const Item *p_left, const Item *p_right) const {
return p_left->index < p_right->index;
}
};
struct ItemPtrSort {
_FORCE_INLINE_ bool operator()(const Item *p_left, const Item *p_right) const {