Fix Image::bump_map_to_normal_map incorrectly keeping mipmap flag

(cherry picked from commit 1fa8b3dd42)
This commit is contained in:
dzil123 2022-11-01 03:54:04 -07:00 committed by Rémi Verschelde
parent d3735d8b21
commit d7f6cc26d2
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -3098,6 +3098,7 @@ Ref<Image> Image::rgbe_to_srgb() {
void Image::bumpmap_to_normalmap(float bump_scale) {
ERR_FAIL_COND(!_can_modify(format));
ERR_FAIL_COND_MSG(write_lock.ptr(), "Cannot modify image when it is locked.");
clear_mipmaps();
convert(Image::FORMAT_RF);
PoolVector<uint8_t> result_image; //rgba output