Compare commits

..

4 Commits

Author SHA1 Message Date
ydeltastar 6c33f9fba2
Merge a84f154630 into 1cb85807dd 2024-09-11 14:39:45 +00:00
yds a84f154630 Preserve selection after drop 2024-09-11 11:39:28 -03:00
yds 230e481236 Add drag preview 2024-09-11 11:39:28 -03:00
yds 85fb267e3b Implement task multiple selection and drag and drop 2024-09-11 11:39:27 -03:00
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ void LimboAIEditor::_on_tasks_dragged(const TypedArray<BTTask> &p_tasks, Ref<BTT
++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;
for (const Ref<BTTask> &task : tasks_list) {
if (task->get_parent() == p_to_task && drop_idx > task->get_index()) {