diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-11-25 17:05:35 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-11-25 17:05:35 -0300 |
commit | 815557c81228efc9e74097b50590b2d091387059 (patch) | |
tree | b8accaeb05c424276495506d00665f479018e303 /editor/import | |
parent | 81c86e8047d86d03e690948c68eb54c5b115f2ab (diff) |
Do not normalize normal map when disabled, fixes #20761
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 b38f4c4f14..724203831c 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -415,7 +415,7 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String image->resize(new_width, new_height, Image::INTERPOLATE_CUBIC); } - if (normal) { + if (normal == 1) { image->normalize(); } } |