mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-24 02:25:22 +00:00
Merge pull request #45843 from lawnjelly/ewok_backbuffer_sort_fix
Batching - prevent reordering items over a copybackbuffer
This commit is contained in:
@@ -2716,6 +2716,11 @@ PREAMBLE(bool)::sort_items_from(int p_start) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// disallow sorting over copy back buffer
|
||||
if (second.item->copy_back_buffer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// which neighbour to test
|
||||
int test_last = 2 + bdata.settings_item_reordering_lookahead;
|
||||
for (int test = 2; test < test_last; test++) {
|
||||
|
||||
Reference in New Issue
Block a user