aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-09 15:50:08 -0300
committerJuan Linietsky2017-01-09 15:50:59 -0300
commite9bb65db815b593037a573c1c7a78e95b7550cb0 (patch)
tree3ccb0b04272cf36701028a1f662c39cc1bd9bdc1 /scene/gui/graph_edit.cpp
parent0e635b683b84417b0970218ce720bbc553205ca6 (diff)
downloadgodot-e9bb65db815b593037a573c1c7a78e95b7550cb0.tar.gz
godot-e9bb65db815b593037a573c1c7a78e95b7550cb0.tar.zst
godot-e9bb65db815b593037a573c1c7a78e95b7550cb0.zip
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r--scene/gui/graph_edit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index d3f2ad7e1..4d72bbbd0 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -302,7 +302,6 @@ void GraphEdit::_notification(int p_what) {
draw_style_box( get_stylebox("bg"),Rect2(Point2(),get_size()) );
- VS::get_singleton()->canvas_item_set_clip(get_canvas_item(),true);
if (is_using_snap()) {
//draw grid
@@ -1337,7 +1336,7 @@ GraphEdit::GraphEdit() {
setting_scroll_ofs=false;
just_disconected=false;
-
+ set_clip_contents(true);
}