Fixed a bug with DebugRenderer::drawCapsule() where only half the connecting cylinder's triangles were generated
This commit is contained in:
parent
c273e7cfe5
commit
742fe872f3
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -43,3 +43,5 @@ documentation/UserManual/*.tmp
|
|||
documentation/UserManual/*.toc
|
||||
documentation/UserManual/*.xref
|
||||
documentation/UserManual/*.xref
|
||||
|
||||
/build
|
||||
|
|
|
@ -267,6 +267,7 @@ void DebugRenderer::drawCapsule(const Transform& transform, decimal radius, deci
|
|||
for (uint i = 0; i < NB_SECTORS_SPHERE; i++, a1++, a2++) {
|
||||
|
||||
mTriangles.add(DebugTriangle(vertices[a1 + 1], vertices[a2], vertices[a2 + 1], color));
|
||||
mTriangles.add(DebugTriangle(vertices[a1], vertices[a2], vertices[a1 + 1], color));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user