From 42f7f0894ed4884a0360ca583c955359e1c90e87 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Thu, 23 Jun 2022 20:55:37 -0700 Subject: Restore the openexr grayscale property. --- core/io/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/io/image.cpp') diff --git a/core/io/image.cpp b/core/io/image.cpp index 97a46c29db..f065dac212 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -2324,11 +2324,11 @@ Error Image::save_exr(const String &p_path, bool p_grayscale) const { return save_exr_func(p_path, Ref((Image *)this), p_grayscale); } -Vector Image::save_exr_to_buffer() const { +Vector Image::save_exr_to_buffer(bool p_grayscale) const { if (save_exr_buffer_func == nullptr) { return Vector(); } - return save_exr_buffer_func(Ref((Image *)this), false); + return save_exr_buffer_func(Ref((Image *)this), p_grayscale); } Error Image::save_webp(const String &p_path, const bool p_lossy, const float p_quality) const { -- cgit v1.2.3