diff --git a/core/io/image.cpp b/core/io/image.cpp index f6a603e82..2c011b366 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -3108,6 +3108,7 @@ Ref 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 result_image; //rgba output