Merge pull request #62124 from holgac/bugfix-62096

Fixes #62096: LightmapGIData::_get_light_textures_data crash on empty image
This commit is contained in:
JFonS 2022-06-26 12:30:19 +02:00 committed by GitHub
commit 12459ab334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ void LightmapGIData::_set_light_textures_data(const Array &p_data) {
Array LightmapGIData::_get_light_textures_data() const {
Array ret;
if (light_texture.is_null()) {
if (light_texture.is_null() || light_texture->get_layers() == 0) {
return ret;
}