diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-20 06:29:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-20 07:54:17 +0100 |
commit | 1c13313ec845d43077bd7e78538358ca4e007f8a (patch) | |
tree | 95923091df12f95bae5049d88037c9c8ff39f07f /editor/update.cpp | |
parent | 38a87664deaedacf0aa8e97d9b0aa46dfb6c8ae6 (diff) |
sort entities by id rather than draw order
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index 63ef1432..05226f60 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -111,7 +111,6 @@ void app::do_rotate(bool backward) auto i = e.index(); auto r = backward ? e.atlas->prev_rotation_from(e.r) : e.atlas->next_rotation_from(e.r); e.rotate(i, r); - e.reposition(i); } } } @@ -197,12 +196,7 @@ start: for (auto i = size-1; i != (size_t)-1; i--) { e.last_update = curframe; auto status = e.update(i, dt); - if (status == entity_update_status::updated_repositioning) - { - //Debug{} << "reposition after update" << e.ordinal_offset({}) << off; - e.reposition(i); - } - if (status >= entity_update_status::updated_repositioned) + if (status) { //Debug{} << "goto start"; goto start; |