Skip to content

Commit f5aacc9

Browse files
committed
stop clearing editor_plugin_screen on script edit
1 parent 00a0512 commit f5aacc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/editor_node.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,6 +2926,9 @@ void EditorNode::_edit_current(bool p_skip_foreign, bool p_skip_inspector_update
29262926
if (!changing_scene) {
29272927
main_plugin->edit(current_obj);
29282928
}
2929+
} else if (Object::cast_to<Script>(current_obj)) {
2930+
editor_main_screen->select(plugin_index);
2931+
main_plugin->edit(current_obj);
29292932
} else if (main_plugin != editor_plugin_screen) {
29302933
// Unedit previous plugin.
29312934
editor_plugin_screen->edit(nullptr);

0 commit comments

Comments
 (0)