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]. +