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