Browse Source

Merge pull request #101323 from demolke/modenable

LightmapGI: Including `modules_enabled.gen.h` to properly check the configuration warning
Rémi Verschelde 7 months ago
parent
commit
eb4a9977c3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scene/3d/lightmap_gi.cpp

+ 3 - 1
scene/3d/lightmap_gi.cpp

@@ -34,13 +34,15 @@
 #include "core/io/config_file.h"
 #include "core/math/delaunay_3d.h"
 #include "core/object/object.h"
-#include "lightmap_probe.h"
+#include "scene/3d/lightmap_probe.h"
 #include "scene/3d/mesh_instance_3d.h"
 #include "scene/resources/camera_attributes.h"
 #include "scene/resources/environment.h"
 #include "scene/resources/image_texture.h"
 #include "scene/resources/sky.h"
 
+#include "modules/modules_enabled.gen.h" // For lightmapper_rd.
+
 void LightmapGIData::add_user(const NodePath &p_path, const Rect2 &p_uv_scale, int p_slice_index, int32_t p_sub_instance) {
 	User user;
 	user.path = p_path;