DarkRadiant: master e7bf1707

Author Committer Branch Timestamp Parent
greebo greebo master 20.09.2018 15:18 master c2614584
Changeset Don't produce bad normals by dividing by zero in degenerate cases.
Cylinder patches created from 1x1x1 brushes will yield (0,0,0) normals, the code tries to normalise them and we end up with NaNs in exported meshes.
The fix doesn't make the output of patches 0004880 much better, but at least we have actual numbers now instead of the NaN literals.
mod - radiant/patch/PatchTesselation.cpp Diff File