mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- fixed: When the node builder is used for triangulation, all zero-length lines must be eliminated first.
These can cause triangulation errors.
This commit is contained in:
parent
bea0379830
commit
cc1def8d77
1 changed files with 8 additions and 0 deletions
|
@ -369,6 +369,14 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
|||
for (unsigned i = 0; i < lines.Size(); i++)
|
||||
{
|
||||
auto p1 = lines[i].v1->p, p2 = lines[i].v2->p;
|
||||
|
||||
// Throw out any line with zero length.
|
||||
if (p1 == p2)
|
||||
{
|
||||
lines.Delete(i);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (unsigned j = i + 1; j < lines.Size(); j++)
|
||||
{
|
||||
auto pp1 = lines[j].v1->p, pp2 = lines[j].v2->p;
|
||||
|
|
Loading…
Reference in a new issue