summaryrefslogtreecommitdiffstats
path: root/scene/3d/voxel_gi.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-01-20 17:35:32 +0100
committerGitHub <noreply@github.com>2022-01-20 17:35:32 +0100
commit7e3b92f81feb0597c657d13797e0ebf449ec2d5d (patch)
tree1ac984c6b5ef5b407518f9690cbdd8044d99f5f1 /scene/3d/voxel_gi.cpp
parentdbd560cb688fed317bfea4d2d630d93e47ac9780 (diff)
parente962900f2344b4ca797002ddf440625087f63291 (diff)
downloadredot-engine-7e3b92f81feb0597c657d13797e0ebf449ec2d5d.tar.gz
Merge pull request #55360 from Calinou/rename-bake-mode-properties
Diffstat (limited to 'scene/3d/voxel_gi.cpp')
-rw-r--r--scene/3d/voxel_gi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxel_gi.cpp b/scene/3d/voxel_gi.cpp
index 35ac1792e9..bfe3c80a4f 100644
--- a/scene/3d/voxel_gi.cpp
+++ b/scene/3d/voxel_gi.cpp
@@ -282,7 +282,7 @@ Vector3 VoxelGI::get_extents() const {
void VoxelGI::_find_meshes(Node *p_at_node, List<PlotMesh> &plot_meshes) {
MeshInstance3D *mi = Object::cast_to<MeshInstance3D>(p_at_node);
- if (mi && mi->get_gi_mode() == GeometryInstance3D::GI_MODE_BAKED && mi->is_visible_in_tree()) {
+ if (mi && mi->get_gi_mode() == GeometryInstance3D::GI_MODE_STATIC && mi->is_visible_in_tree()) {
Ref<Mesh> mesh = mi->get_mesh();
if (mesh.is_valid()) {
AABB aabb = mesh->get_aabb();