Do not normalize normal map when disabled, fixes #20761

This commit is contained in:
Juan Linietsky 2018-11-25 17:05:35 -03:00
parent 81c86e8047
commit 815557c812
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}