summaryrefslogtreecommitdiff
path: root/scene/2d/canvas_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/canvas_item.cpp')
-rw-r--r--scene/2d/canvas_item.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp
index 316097fbcf..483feea5c4 100644
--- a/scene/2d/canvas_item.cpp
+++ b/scene/2d/canvas_item.cpp
@@ -233,7 +233,7 @@ bool CanvasItem::is_visible() const {
const CanvasItem *p=this;
- while(p) {
+ while(p) {
if (p->hidden)
return false;
p=p->get_parent_item();
@@ -310,11 +310,11 @@ void CanvasItem::hide() {
}
void CanvasItem::set_hidden(bool p_hidden) {
-
+
if (hidden == p_hidden) {
return;
}
-
+
_set_visible_(!p_hidden);
}
@@ -1209,7 +1209,7 @@ CanvasItem::CanvasItem() : xform_change(this) {
pending_update=false;
opacity=1;
self_opacity=1;
- toplevel=false;
+ toplevel=false;
pending_children_sort=false;
first_draw=false;
blend_mode=BLEND_MODE_MIX;