summaryrefslogtreecommitdiff
path: root/scene/gui/texture_rect.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
commit7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (patch)
tree9560a84f1300e2466338426f2e267adba6a06a53 /scene/gui/texture_rect.h
parentdf9c98e107b19fc50bc5ae9f7ed624d693c0fb32 (diff)
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/gui/texture_rect.h')
-rw-r--r--scene/gui/texture_rect.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/texture_rect.h b/scene/gui/texture_rect.h
index 0f3172f5bd..0f93d5732f 100644
--- a/scene/gui/texture_rect.h
+++ b/scene/gui/texture_rect.h
@@ -49,11 +49,11 @@ public:
};
private:
- bool expand;
- bool hflip;
- bool vflip;
+ bool expand = false;
+ bool hflip = false;
+ bool vflip = false;
Ref<Texture2D> texture;
- StretchMode stretch_mode;
+ StretchMode stretch_mode = STRETCH_SCALE_ON_EXPAND;
void _texture_changed();