Avoid thekla_unwrap crash
Godot crashed here sometimes by generating the uv map.
This commit is contained in:
parent
0294887a0c
commit
1df63bf3cb
2 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue