Merge pull request #62124 from holgac/bugfix-62096
Fixes #62096: LightmapGIData::_get_light_textures_data crash on empty image
This commit is contained in:
commit
12459ab334
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user