Ensure, if a texture meant for a normal map is imported and size limit exists, that it's renormalized after resize.

This commit is contained in:
Juan Linietsky
2018-07-03 10:55:50 -03:00
parent 74369229de
commit e179bf0726
5 changed files with 37 additions and 2 deletions
@@ -395,6 +395,10 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
image->resize(new_width, new_height, Image::INTERPOLATE_CUBIC);
}
if (normal) {
image->normalize();
}
}
if (fix_alpha_border) {