mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix newly baked lightmap can't override previously baked at same path
This commit is contained in:
parent
e25f3c0d38
commit
a8526e68a7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user