Use initializer list in Arrays
This commit is contained in:
parent
594d64ec24
commit
75881f8322
72 changed files with 347 additions and 947 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue