diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cpp index 675f9ea8d3d..fb0a50dc9af 100644 --- a/scene/3d/lightmap_gi.cpp +++ b/scene/3d/lightmap_gi.cpp @@ -371,7 +371,7 @@ void LightmapGI::_find_meshes_and_lights(Node *p_at_node, Vector &m Node3D *s = Object::cast_to(p_at_node); if (!mi && s) { - Array bmeshes = p_at_node->call("get_bake_bmeshes"); + Array bmeshes = p_at_node->call("get_bake_meshes"); if (bmeshes.size() && (bmeshes.size() & 1) == 0) { Transform3D xf = get_global_transform().affine_inverse() * s->get_global_transform(); for (int i = 0; i < bmeshes.size(); i += 2) {