summaryrefslogtreecommitdiff
path: root/scene/2d/light_occluder_2d.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-02-07 22:29:31 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-02-07 22:29:31 +0100
commit003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 (patch)
tree3c7f54d3b3e6d355a2ffb14933e0b5461478b224 /scene/2d/light_occluder_2d.h
parent57e2822a05c29db3980ad243c37a34acf6c4d14b (diff)
Initialize class variables with default values in scene/ [1/2]
Diffstat (limited to 'scene/2d/light_occluder_2d.h')
-rw-r--r--scene/2d/light_occluder_2d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/light_occluder_2d.h b/scene/2d/light_occluder_2d.h
index 7944ccad3a..f567c6d965 100644
--- a/scene/2d/light_occluder_2d.h
+++ b/scene/2d/light_occluder_2d.h
@@ -46,11 +46,11 @@ public:
private:
RID occ_polygon;
Vector<Vector2> polygon;
- bool closed;
- CullMode cull;
+ bool closed = true;
+ CullMode cull = CULL_DISABLED;
mutable Rect2 item_rect;
- mutable bool rect_cache_dirty;
+ mutable bool rect_cache_dirty = true;
protected:
static void _bind_methods();