Use initializer list in Arrays

This commit is contained in:
kobewi 2024-03-22 22:53:26 +01:00
parent 594d64ec24
commit 75881f8322
72 changed files with 347 additions and 947 deletions

View file

@ -293,8 +293,7 @@ Dictionary LightmapGIData::_get_probe_data() const {
#ifndef DISABLE_DEPRECATED
void LightmapGIData::set_light_texture(const Ref<TextureLayered> &p_light_texture) {
TypedArray<TextureLayered> arr;
arr.append(p_light_texture);
TypedArray<TextureLayered> arr = { p_light_texture };
set_lightmap_textures(arr);
}