diff --git a/core/image.cpp b/core/image.cpp index cb3e1ef4b25..e822da61b69 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -3020,6 +3020,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 4c800bd515a..04c3179bbac 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -611,5 +611,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]. +