Fix: Duplicate should put new task after the prototype
This commit is contained in:
parent
ffd0d943f1
commit
b42cfa4330
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue