summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-09 15:50:08 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-09 15:50:59 -0300
commite9bb65db815b593037a573c1c7a78e95b7550cb0 (patch)
tree3ccb0b04272cf36701028a1f662c39cc1bd9bdc1 /scene/gui/tree.cpp
parent0e635b683b84417b0970218ce720bbc553205ca6 (diff)
downloadredot-engine-e9bb65db815b593037a573c1c7a78e95b7550cb0.tar.gz
-All types have editable script now in properties
-Changed clip to a property in Control which can be set by the user
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r--scene/gui/tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 16175e9f4b..f4f1fd8b9c 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2760,8 +2760,6 @@ void Tree::_notification(int p_what) {
update_scrollbars();
RID ci = get_canvas_item();
- VisualServer::get_singleton()->canvas_item_set_clip(ci,true);
-
Ref<StyleBox> bg = cache.bg;
Ref<StyleBox> bg_focus = get_stylebox("bg_focus");
@@ -3730,6 +3728,8 @@ Tree::Tree() {
force_select_on_already_selected=false;
allow_rmb_select=false;
+
+ set_clip_contents(true);
}