Skip to content

Commit

Permalink
Fixed problem with UV coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
jval1972 committed Dec 3, 2021
1 parent 46fafe4 commit 833b82e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions models.pas
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ function model_t.AddVert(const x, y, z, u, v: single): integer;
if abs(x - mVert[i].x) < EPSILON then
if abs(y - mVert[i].y) < EPSILON then
if abs(z - mVert[i].z) < EPSILON then
begin
Result := i;
Exit;
end;
if abs(u - mVert[i].u) < EPSILON then
if abs(v - mVert[i].v) < EPSILON then
begin
Result := i;
Exit;
end;

Result := mVertCount;
inc(mVertCount);
Expand Down

0 comments on commit 833b82e

Please sign in to comment.