Auto-expand current node type when replace node

This commit is contained in:
Matthias Schmitt 2019-03-02 15:10:27 +01:00
parent 9738ed567c
commit 6b7c8ef327
3 changed files with 35 additions and 10 deletions

View file

@ -347,7 +347,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
if (!profile_allow_editing) {
break;
}
create_dialog->popup_create(false, true);
create_dialog->popup_create(false, true, scene_tree->get_selected()->get_class());
} break;
case TOOL_ATTACH_SCRIPT: {