You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Stop baking process if there is no geometry in the BakedLightInstance.
moved missing baked light warning to BakedLightInstance configuration warning
This commit is contained in:
@@ -1772,6 +1772,10 @@ void BakedLightBaker::bake(const Ref<BakedLight> &p_light, Node* p_node) {
|
||||
mat_map.clear();
|
||||
tex_map.clear();
|
||||
print_line("\ttotal triangles: "+itos(triangles.size()));
|
||||
// no geometry
|
||||
if (triangles.size() == 0) {
|
||||
return;
|
||||
}
|
||||
ep.step(TTR("Fixing Lights"),1);
|
||||
_fix_lights();
|
||||
ep.step(TTR("Making BVH"),2);
|
||||
|
||||
Reference in New Issue
Block a user