diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-07-23 12:38:20 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-07-23 12:38:20 +0800 |
commit | a8526e68a7cb09529977a4605ea3d26d8e10f0dd (patch) | |
tree | 385333878b55cb3eef74620c65b43fd4ecc4d5e4 | |
parent | e25f3c0d38d457b15a63720240736f564ce0501b (diff) | |
download | redot-engine-a8526e68a7cb09529977a4605ea3d26d8e10f0dd.tar.gz |
Fix newly baked lightmap can't override previously baked at same path
-rw-r--r-- | scene/3d/lightmap_gi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cpp index 77c5d5a499..038a78609f 100644 --- a/scene/3d/lightmap_gi.cpp +++ b/scene/3d/lightmap_gi.cpp @@ -1335,7 +1335,7 @@ LightmapGI::BakeError LightmapGI::bake(Node *p_from_node, String p_image_data_pa /* Compute a BSP tree of the simplices, so it's easy to find the exact one */ } - gi_data->set_path(p_image_data_path); + gi_data->set_path(p_image_data_path, true); Error err = ResourceSaver::save(gi_data); if (err != OK) { |