diff options
author | kobewi <kobewi4e@gmail.com> | 2022-10-18 16:43:37 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-10-18 19:01:48 +0200 |
commit | e48c5daddfa70172c0eab57b8045a7087eec6e2c (patch) | |
tree | 249fa2203570136d3a2040ad612e6e86a516cd5f /modules/webp | |
parent | 28a4eec9a77bc797b7147be2453cdbe85cf47d7f (diff) |
Unify usage of GLOBAL/EDITOR_GET
Diffstat (limited to 'modules/webp')
-rw-r--r-- | modules/webp/webp_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webp/webp_common.cpp b/modules/webp/webp_common.cpp index 049c1c3a32..a8fdea0828 100644 --- a/modules/webp/webp_common.cpp +++ b/modules/webp/webp_common.cpp @@ -73,7 +73,7 @@ Vector<uint8_t> _webp_lossy_pack(const Ref<Image> &p_image, float p_quality) { Vector<uint8_t> _webp_lossless_pack(const Ref<Image> &p_image) { ERR_FAIL_COND_V(p_image.is_null() || p_image->is_empty(), Vector<uint8_t>()); - int compression_level = ProjectSettings::get_singleton()->get("rendering/textures/lossless_compression/webp_compression_level"); + int compression_level = GLOBAL_GET("rendering/textures/lossless_compression/webp_compression_level"); compression_level = CLAMP(compression_level, 0, 9); Ref<Image> img = p_image->duplicate(); |