mirror of
https://github.com/dpethes/rerogue.git
synced 2025-06-07 18:58:32 +02:00
Review comments
This commit is contained in:
parent
56d6dce408
commit
b97931c661
@ -345,6 +345,8 @@ var
|
||||
end;
|
||||
|
||||
begin
|
||||
if _triangles.Size = 0 then
|
||||
exit;
|
||||
if opts.wireframe then
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
|
||||
|
||||
@ -360,10 +362,11 @@ begin
|
||||
end;
|
||||
|
||||
glColor3f(1, 1, 1);
|
||||
if _triangles.Size > 0 then begin
|
||||
|
||||
j := min(integer(opts.obj_to_draw), integer(_triangles.Size - 1));
|
||||
opts.obj_to_draw := j; // clip
|
||||
if _triangles[j].Size > 0 then begin
|
||||
if _triangles[j].Size = 0 then
|
||||
exit;
|
||||
if opts.fg_all then begin
|
||||
for k := 0 to _triangles[j].Size - 1 do
|
||||
if _triangles[j][k].Size > 0 then
|
||||
@ -390,8 +393,6 @@ begin
|
||||
ImGui.Text('facegroup: %d / %d', [opts.fg_to_draw + 1, _triangles[opts.obj_to_draw].Size]);
|
||||
ImGui.End_;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
const
|
||||
|
Loading…
x
Reference in New Issue
Block a user