summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2019-10-19 01:23:17 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2020-02-11 12:04:31 +0100
commit19e294e29b83e42ad0926abbb864ba8f2700e2f9 (patch)
tree6d946628cbb9c255def413cc61a81c20e672e614
parenta8e14bee58ea3a7404eabc3687cb11ef778497a3 (diff)
Fix export template compilation
-rw-r--r--scene/3d/gi_probe.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/gi_probe.cpp b/scene/3d/gi_probe.cpp
index 2423c0a7a3..404185f3e7 100644
--- a/scene/3d/gi_probe.cpp
+++ b/scene/3d/gi_probe.cpp
@@ -450,7 +450,9 @@ void GIProbe::bake(Node *p_from_node, bool p_create_visual_debug) {
probe_data->allocate(baker.get_to_cell_space_xform(), AABB(-extents, extents * 2.0), baker.get_giprobe_octree_size(), baker.get_giprobe_octree_cells(), baker.get_giprobe_data_cells(), df, baker.get_giprobe_level_cell_count());
set_probe_data(probe_data);
+#ifdef TOOLS_ENABLED
probe_data->set_edited(true); //so it gets saved
+#endif
}
if (bake_end_function) {