Compare commits
3 Commits
1742018696
...
a2c6b65f4f
Author | SHA1 | Date |
---|---|---|
|
a2c6b65f4f | |
|
e6a4eff0a6 | |
|
48d1536aeb |
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue