From 73d5851232bc0e29f1d026b1796c67436fa9e15b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 17 Jan 2022 20:43:05 +0800 Subject: [PATCH] Expose `Image.COMPRESS_SOURCE_LAYERED` to scripting (cherry picked from commit 7f49e5beec642c6c3b72ba234d8c956207ce6b34) --- core/image.cpp | 1 + doc/classes/Image.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/image.cpp b/core/image.cpp index 812a967cc03..07a3673592a 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -2988,6 +2988,7 @@ void Image::_bind_methods() { BIND_ENUM_CONSTANT(COMPRESS_SOURCE_GENERIC); BIND_ENUM_CONSTANT(COMPRESS_SOURCE_SRGB); BIND_ENUM_CONSTANT(COMPRESS_SOURCE_NORMAL); + BIND_ENUM_CONSTANT(COMPRESS_SOURCE_LAYERED); } void Image::set_compress_bc_func(void (*p_compress_func)(Image *, float, CompressSource)) { diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 4a209c4f795..adfe49feb17 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -603,5 +603,8 @@ Source texture (before compression) is a normal texture (e.g. it can be compressed into two channels). + + Source texture (before compression) is a [TextureLayered]. +