summaryrefslogtreecommitdiff
path: root/core/io/image.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-24 08:06:01 +0200
committerGitHub <noreply@github.com>2022-06-24 08:06:01 +0200
commit913598fec166b4742c6242f46b8b51a4df30f6fb (patch)
treea8ab02ab3b198dfe2911198fbc087dada1e0c5b3 /core/io/image.cpp
parentecf187705eb59632cefa649b0f4b44dd3569c0fb (diff)
parent42f7f0894ed4884a0360ca583c955359e1c90e87 (diff)
Merge pull request #62368 from V-Sekai/exr-bug
Restore the openexr grayscale property.
Diffstat (limited to 'core/io/image.cpp')
-rw-r--r--core/io/image.cpp4
1 files changed, 2 insertions, 2 deletions
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>((Image *)this), p_grayscale);
}
-Vector<uint8_t> Image::save_exr_to_buffer() const {
+Vector<uint8_t> Image::save_exr_to_buffer(bool p_grayscale) const {
if (save_exr_buffer_func == nullptr) {
return Vector<uint8_t>();
}
- return save_exr_buffer_func(Ref<Image>((Image *)this), false);
+ return save_exr_buffer_func(Ref<Image>((Image *)this), p_grayscale);
}
Error Image::save_webp(const String &p_path, const bool p_lossy, const float p_quality) const {