Merge pull request #26701 from qarmin/do_not_lost_focus

Do not lose focus when moving through scene tree
This commit is contained in:
Rémi Verschelde 2019-04-01 11:57:46 +02:00 committed by GitHub
commit 9347142484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4922,7 +4922,6 @@ void CanvasItemEditorPlugin::make_visible(bool p_visible) {
canvas_item_editor->show(); canvas_item_editor->show();
canvas_item_editor->set_physics_process(true); canvas_item_editor->set_physics_process(true);
VisualServer::get_singleton()->viewport_set_hide_canvas(editor->get_scene_root()->get_viewport_rid(), false); VisualServer::get_singleton()->viewport_set_hide_canvas(editor->get_scene_root()->get_viewport_rid(), false);
canvas_item_editor->viewport->grab_focus();
} else { } else {