Compare commits

..

3 Commits

Author SHA1 Message Date
yds 1742018696 Preserve selection after drop 2024-09-13 09:04:18 -03:00
yds a460c7898b Add drag preview 2024-09-13 09:04:18 -03:00
yds 8ee3688da2 Implement task multiple selection and drag and drop 2024-09-13 09:04:18 -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() - 1);
to_pos = MAX(0, to_task->get_index());
to_task = to_task->get_parent();
break;
case 1: // Drop below target.