From 3d47a3662fdb24b8d43ead5d3568d66de5c0e12f Mon Sep 17 00:00:00 2001 From: bitsawer Date: Mon, 11 Sep 2023 15:15:40 +0300 Subject: [PATCH] Fix LightmapGI baking with GridMap (cherry picked from commit 8c26da5460cd4cad532dbd5e9ba785ea162eb977) --- scene/3d/lightmap_gi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {