Initialize color to white.

This commit is contained in:
Relintai 2024-03-24 21:46:54 +01:00
parent 26ca3d7235
commit 1bc9424bc8
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void VertexLight2D::set_item_cull_mask(const int p_item_cull_mask) {
VertexLight2D::VertexLight2D() {
_vertex_light = RID_PRIME(VertexLights2DServer::get_singleton()->light_create());
_color = Color(1, 1, 1, 1);
_item_cull_mask = 1;
_z_range = Vector2i(-1024, 1024);
_mode = VERTEX_LIGHT_2D_MODE_ADD;

View File

@ -63,6 +63,7 @@ public:
map = NULL;
quadrant = NULL;
color = Color(1, 1, 1, 1);
item_cull_mask = 1;
z_range = Vector2i(-1024, 1024);
mode = VertexLights2DServer::VERTEX_LIGHT_2D_MODE_ADD;