Compare commits

..

3 Commits

Author SHA1 Message Date
yds a2c6b65f4f Preserve selection after drop 2024-09-11 20:08:58 -03:00
yds e6a4eff0a6 Add drag preview 2024-09-11 20:08:57 -03:00
yds 48d1536aeb Implement task multiple selection and drag and drop 2024-09-11 20:08:57 -03:00
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ void TaskTree::_drop_data_fw(const Point2 &p_point, const Variant &p_data) {
break;
case -1: // Drop above target.
ERR_FAIL_COND_MSG(to_task->get_parent().is_null(), "Cannot perform drop above the root task!");
to_pos = MAX(0, to_task->get_index());
to_pos = MAX(0, to_task->get_index() - 1);
to_task = to_task->get_parent();
break;
case 1: // Drop below target.