summaryrefslogtreecommitdiff
path: root/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorWilliam Deurwaarder <william.git@xs4all.nl>2021-10-12 23:43:34 +0200
committerWilliam Deurwaarder <william.git@xs4all.nl>2021-10-12 23:43:34 +0200
commitf3f64389ca4b1f55ddc161cedbae02ed746c1632 (patch)
treee90caebe01cd6eae11359cbbc89f4806e499975f /editor/scene_tree_editor.cpp
parent6f1d2133bb2b77048bf13a8180f57bff1a747226 (diff)
GPULightmapper: prevent loop with max iterations
In case the calculation of the delta contained infinity values (division by zero), than later the calculation of the next cell failed as the infinity value was multiplied by zero which resulted in a nan. The nan-value caused that the next cell was equal to the current cell which resulted in an end-less loop, which only terminates by the maximum iterations protection. This is solved by replacing infinity with grid_size which acts as infinity.
Diffstat (limited to 'editor/scene_tree_editor.cpp')
0 files changed, 0 insertions, 0 deletions