Fixes the rulers text drawn outside the viewport_base

This commit is contained in:
Gilles Roudiere 2017-09-22 00:21:41 +02:00
parent be60689812
commit 56a80625e5

View file

@ -3710,6 +3710,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
viewport_base = memnew(Control);
palette_split->add_child(viewport_base);
viewport_base->set_clip_contents(true);
viewport_base->connect("draw", this, "_draw_viewport_base");
viewport_base->connect("gui_input", this, "_viewport_base_gui_input");
viewport_base->set_focus_mode(FOCUS_ALL);