Initialize class variables with default values in scene/ [2/2]

This commit is contained in:
Rafał Mikrut
2021-02-09 18:24:36 +01:00
parent df9c98e107
commit 7961a1dea3
171 changed files with 1007 additions and 1889 deletions

View File

@ -43,12 +43,13 @@ public:
AXIS_STRETCH_MODE_TILE_FIT,
};
bool draw_center;
int margin[4];
bool draw_center = true;
int margin[4] = {};
Rect2 region_rect;
Ref<Texture2D> texture;
AxisStretchMode axis_h, axis_v;
AxisStretchMode axis_h = AXIS_STRETCH_MODE_STRETCH;
AxisStretchMode axis_v = AXIS_STRETCH_MODE_STRETCH;
protected:
void _notification(int p_what);