summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-25 17:05:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-25 17:05:35 -0300
commit815557c81228efc9e74097b50590b2d091387059 (patch)
treeb8accaeb05c424276495506d00665f479018e303 /editor/import
parent81c86e8047d86d03e690948c68eb54c5b115f2ab (diff)
Do not normalize normal map when disabled, fixes #20761
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/resource_importer_texture.cpp2
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();
}
}