Fix: Duplicate should put new task after the prototype

This commit is contained in:
Serhii Snitsaruk 2022-09-03 14:11:03 +02:00
parent ffd0d943f1
commit b42cfa4330
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ void LimboAIEditor::_on_action_selected(int p_id) {
if (parent.is_null()) {
parent = sel;
}
parent->add_child(sel->clone());
parent->add_child_at_index(sel->clone(), parent->get_child_index(sel) + 1);
task_tree->update_tree();
_mark_as_dirty(true);
}