You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
stop clearing editor_plugin_screen on script edit
This commit is contained in:
@@ -2926,6 +2926,9 @@ void EditorNode::_edit_current(bool p_skip_foreign, bool p_skip_inspector_update
|
|||||||
if (!changing_scene) {
|
if (!changing_scene) {
|
||||||
main_plugin->edit(current_obj);
|
main_plugin->edit(current_obj);
|
||||||
}
|
}
|
||||||
|
} else if (Object::cast_to<Script>(current_obj)) {
|
||||||
|
editor_main_screen->select(plugin_index);
|
||||||
|
main_plugin->edit(current_obj);
|
||||||
} else if (main_plugin != editor_plugin_screen) {
|
} else if (main_plugin != editor_plugin_screen) {
|
||||||
// Unedit previous plugin.
|
// Unedit previous plugin.
|
||||||
editor_plugin_screen->edit(nullptr);
|
editor_plugin_screen->edit(nullptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user