diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-11-06 10:10:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 10:10:20 +0100 |
commit | 65eb05384a575a604b6a66a7b904855b482344cc (patch) | |
tree | db2f72a4f87515c1cb8589e109daad86a8f85cde | |
parent | 494bf38c76d3070c548a104d56d9f7e164226f1c (diff) | |
parent | 061f65e41029890a0af19cab008b78054e7a1a70 (diff) |
Merge pull request #43347 from bruvzg/ubsan_uninit3
Fix uninitialised variables in the BaseMaterial3D.
-rw-r--r-- | scene/resources/material.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index a5f8cdaf88..5953942c44 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -2637,6 +2637,8 @@ BaseMaterial3D::BaseMaterial3D(bool p_orm) : orm = p_orm; // Initialize to the same values as the shader shading_mode = SHADING_MODE_PER_PIXEL; + transparency = TRANSPARENCY_DISABLED; + alpha_antialiasing_mode = ALPHA_ANTIALIASING_OFF; set_albedo(Color(1.0, 1.0, 1.0, 1.0)); set_specular(0.5); set_roughness(1.0); |