summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-31 19:24:04 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-01 13:13:19 +0200
commit7adc8376ed79f016730845ea3a93f4015b95149e (patch)
treec0c41fc0189d3763538db5d13bc0af70aa82b9bc /scene/3d
parent736632ee7ed00a3474448cfd227f696f82905ac7 (diff)
Change Array arguments to TypedArray
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/lightmap_gi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cpp
index 7efda6db32..a2046f5fdc 100644
--- a/scene/3d/lightmap_gi.cpp
+++ b/scene/3d/lightmap_gi.cpp
@@ -753,11 +753,11 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_pa
MeshesFound &mf = meshes_found.write[m_i];
Size2i lightmap_size = mf.mesh->get_lightmap_size_hint() * mf.lightmap_scale;
- Vector<RID> overrides;
+ TypedArray<RID> overrides;
overrides.resize(mf.overrides.size());
for (int i = 0; i < mf.overrides.size(); i++) {
if (mf.overrides[i].is_valid()) {
- overrides.write[i] = mf.overrides[i]->get_rid();
+ overrides[i] = mf.overrides[i]->get_rid();
}
}
TypedArray<Image> images = RS::get_singleton()->bake_render_uv2(mf.mesh->get_rid(), overrides, lightmap_size);