From e48c5daddfa70172c0eab57b8045a7087eec6e2c Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 18 Oct 2022 16:43:37 +0200 Subject: Unify usage of GLOBAL/EDITOR_GET --- modules/webp/webp_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/webp') 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 _webp_lossy_pack(const Ref &p_image, float p_quality) { Vector _webp_lossless_pack(const Ref &p_image) { ERR_FAIL_COND_V(p_image.is_null() || p_image->is_empty(), Vector()); - 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 img = p_image->duplicate(); -- cgit v1.2.3