Avoid thekla_unwrap crash

Godot crashed here sometimes by generating the uv map.
This commit is contained in:
Martin Capitanio 2017-12-28 01:07:51 +01:00
parent 0294887a0c
commit 1df63bf3cb
2 changed files with 12 additions and 1 deletions

View file

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