From 8c26da5460cd4cad532dbd5e9ba785ea162eb977 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 --- 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 a666dca658f..9d51670cc95 100644 --- a/scene/3d/lightmap_gi.cpp +++ b/scene/3d/lightmap_gi.cpp @@ -372,7 +372,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) {