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

This commit is contained in:
Rafał Mikrut 2021-02-07 22:29:31 +01:00
parent 57e2822a05
commit 003bb8e1a8
139 changed files with 871 additions and 1652 deletions

View file

@ -52,24 +52,24 @@ public:
private:
RID canvas_light;
bool enabled;
bool editor_only;
bool shadow;
Color color;
Color shadow_color;
float height;
float energy;
int z_min;
int z_max;
int layer_min;
int layer_max;
int item_mask;
int item_shadow_mask;
float shadow_smooth;
bool enabled = true;
bool editor_only = false;
bool shadow = false;
Color color = Color(1, 1, 1);
Color shadow_color = Color(0, 0, 0, 0);
float height = 0.0;
float energy = 1.0;
int z_min = -1024;
int z_max = 1024;
int layer_min = 0;
int layer_max = 0;
int item_mask = 1;
int item_shadow_mask = 1;
float shadow_smooth = 0.0;
Ref<Texture2D> texture;
Vector2 texture_offset;
ShadowFilter shadow_filter;
BlendMode blend_mode;
ShadowFilter shadow_filter = SHADOW_FILTER_NONE;
BlendMode blend_mode = BLEND_MODE_ADD;
void _update_light_visibility();