Compare commits
4 Commits
6c33f9fba2
...
e3f3ce9495
Author | SHA1 | Date |
---|---|---|
ydeltastar | e3f3ce9495 | |
yds | a2c6b65f4f | |
yds | e6a4eff0a6 | |
yds | 48d1536aeb |
|
@ -900,7 +900,7 @@ void LimboAIEditor::_on_tasks_dragged(const TypedArray<BTTask> &p_tasks, Ref<BTT
|
|||
++drop_idx;
|
||||
}
|
||||
|
||||
// Readd tasks in later undo action so indexes match the old order.
|
||||
// Re-add tasks in later undo action so indexes match the old order.
|
||||
drop_idx = p_to_pos;
|
||||
for (const Ref<BTTask> &task : tasks_list) {
|
||||
if (task->get_parent() == p_to_task && drop_idx > task->get_index()) {
|
||||
|
|
Loading…
Reference in New Issue