diff options
author | Martin Capitanio <capnm@capitanio.org> | 2017-12-28 01:07:51 +0100 |
---|---|---|
committer | Martin Capitanio <capnm@capitanio.org> | 2017-12-31 00:43:32 +0100 |
commit | 1df63bf3cbec42e734fca56da90790ca7073528e (patch) | |
tree | f587517166343f094e6b78d54d2a19c931a10b05 /thirdparty | |
parent | 0294887a0ca1b42f9fddb3858d4ee304b3f4d055 (diff) |
Avoid thekla_unwrap crash
Godot crashed here sometimes by generating the uv map.
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/thekla_atlas/nvmesh/param/AtlasPacker.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/thirdparty/thekla_atlas/nvmesh/param/AtlasPacker.cpp b/thirdparty/thekla_atlas/nvmesh/param/AtlasPacker.cpp index fd37b8c59c..11e635db17 100644 --- a/thirdparty/thekla_atlas/nvmesh/param/AtlasPacker.cpp +++ b/thirdparty/thekla_atlas/nvmesh/param/AtlasPacker.cpp @@ -467,7 +467,11 @@ void AtlasPacker::packCharts(int quality, float texelsPerUnit, bool blockAligned nvDebug("origin: %f %f\n", origin.x, origin.y); nvDebug("majorAxis: %f %f\n", majorAxis.x, majorAxis.y); nvDebug("minorAxis: %f %f\n", minorAxis.x, minorAxis.y); - nvDebugBreak(); + // -- GODOT start -- + //nvDebugBreak(); + m_atlas->setFailed(); + return; + // -- GODOT end -- } //nvCheck(tmp.x >= 0 && tmp.y >= 0); |