mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Can't reopen signals panel immediately after connecting a signal #92996
This commit is contained in:
parent
475248d99d
commit
64ba2cf3a9
7 changed files with 12 additions and 21 deletions
|
@ -2856,6 +2856,10 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const
|
|||
|
||||
break;
|
||||
}
|
||||
|
||||
// Move back to the previously edited node to reselect it in the Inspector and the NodeDock.
|
||||
// We assume that the previous item is the node on which the callbacks were added.
|
||||
EditorNode::get_singleton()->edit_previous_item();
|
||||
}
|
||||
|
||||
void ScriptEditor::_save_editor_state(ScriptEditorBase *p_editor) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue