Merge pull request #30325 from LikeLakers2/scenetreedock-script-creation-bugfix-2

SceneTreeDock will reset the ScriptCreateDialog's inheritance base type whenever it opens the dialog
This commit is contained in:
Rémi Verschelde 2019-07-05 09:43:12 +02:00 committed by GitHub
commit 0b6c76efd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -439,6 +439,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
} }
script_create_dialog->connect("script_created", this, "_script_created"); script_create_dialog->connect("script_created", this, "_script_created");
script_create_dialog->connect("popup_hide", this, "_script_creation_closed"); script_create_dialog->connect("popup_hide", this, "_script_creation_closed");
script_create_dialog->set_inheritance_base_type("Node");
script_create_dialog->config(inherits, path); script_create_dialog->config(inherits, path);
script_create_dialog->popup_centered(); script_create_dialog->popup_centered();