From 1fa8b3dd420301dd5c2ad99b6bead6cffe1d4995 Mon Sep 17 00:00:00 2001 From: dzil123 <5725958+dzil123@users.noreply.github.com> Date: Tue, 1 Nov 2022 03:54:04 -0700 Subject: Fix Image::bump_map_to_normal_map incorrectly keeping mipmap flag --- core/io/image.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/io/image.cpp b/core/io/image.cpp index 16dd66fc98..6a049014bc 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -3524,6 +3524,7 @@ Ref Image::get_image_from_mipmap(int p_mipamp) const { void Image::bump_map_to_normal_map(float bump_scale) { ERR_FAIL_COND(!_can_modify(format)); + clear_mipmaps(); convert(Image::FORMAT_RF); Vector result_image; //rgba output -- cgit v1.2.3