1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Create 'rendering/misc' project settings section

To prevent the project settings `rendering` section getting out of hand, this PR moves some of the smaller new settings into a `misc` category.
This commit is contained in:
lawnjelly
2021-08-16 10:21:54 +01:00
parent db0370cab5
commit 192ec963ae
6 changed files with 14 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ static PoolVector<uint8_t> _webp_lossy_pack(const Ref<Image> &p_image, float p_q
static PoolVector<uint8_t> _webp_lossless_pack(const Ref<Image> &p_image) {
ERR_FAIL_COND_V(p_image.is_null() || p_image->empty(), PoolVector<uint8_t>());
int compression_level = ProjectSettings::get_singleton()->get("rendering/lossless_compression/webp_compression_level");
int compression_level = ProjectSettings::get_singleton()->get("rendering/misc/lossless_compression/webp_compression_level");
compression_level = CLAMP(compression_level, 0, 9);
Ref<Image> img = p_image->duplicate();