1
0
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:
Daniel J. Ramirez
2016-07-25 21:45:20 -05:00
parent 6273ec901f
commit 213a57ccaf
4 changed files with 20 additions and 2 deletions

View File

@@ -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);