diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-31 13:50:25 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-31 13:52:42 +0200 |
| commit | 0a2fa4d892ace40f65453cfe86710c4281230529 (patch) | |
| tree | b048a9ff7f3a7e51f245e5a731207b0615ee1414 /editor/import | |
| parent | 047cdea7fa24e2e9e73a9f65064cfe97b820184c (diff) | |
| download | redot-engine-0a2fa4d892ace40f65453cfe86710c4281230529.tar.gz | |
Fix more -Wmaybe-uninitialized warnings with target=release_debug
I have no idea why those don't get triggered in target=debug builds.
Fixes #37461.
Diffstat (limited to 'editor/import')
| -rw-r--r-- | editor/import/resource_importer_texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index c218697423..c92251ca60 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -424,7 +424,7 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String String normal_map = p_options["roughness/src_normal"]; Ref<Image> normal_image; - Image::RoughnessChannel roughness_channel; + Image::RoughnessChannel roughness_channel = Image::ROUGHNESS_CHANNEL_R; if (mipmaps && roughness > 1 && FileAccess::exists(normal_map)) { normal_image.instance(); |
