summaryrefslogtreecommitdiffstats
path: root/scene/gui/label.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/label.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/label.cpp')
-rw-r--r--scene/gui/label.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 3d350b2230..dda9e4b128 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -70,8 +70,9 @@ void Label::_notification(int p_what) {
if (p_what==NOTIFICATION_DRAW) {
- if (clip || autowrap)
+ if (clip || autowrap) {
VisualServer::get_singleton()->canvas_item_set_clip(get_canvas_item(),true);
+ }
if (word_cache_dirty)
regenerate_word_cache();