diff options
-rw-r--r-- | scene/3d/gi_probe.cpp | 2 |
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) { |