diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-09-22 00:21:41 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-09-22 09:18:04 +0200 |
commit | 56a80625e59fd57e4f8e13811c950d769abbc982 (patch) | |
tree | f6908ed67c9ceebb08afecc6aced4a29f88e4ab8 /editor | |
parent | be606898122d8e6cd259bfde8132dbce62d0b2ff (diff) |
Fixes the rulers text drawn outside the viewport_base
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index e621394a07..c58ccb55a8 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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); |