mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-21 00:11:32 +00:00
Disable triangle detection workaround when Bullet actually uses triangles
This commit is contained in:
parent
8b4c2d205d
commit
cf15803e67
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,7 @@ void DebugDrawer::drawLine(const btVector3 &from, const btVector3 &to, const btV
|
||||||
mLinesColors->push_back({1,1,1,1});
|
mLinesColors->push_back({1,1,1,1});
|
||||||
mLinesColors->push_back({1,1,1,1});
|
mLinesColors->push_back({1,1,1,1});
|
||||||
|
|
||||||
|
#if BT_BULLET_VERSION < 317
|
||||||
size_t size = mLinesVertices->size();
|
size_t size = mLinesVertices->size();
|
||||||
if (size >= 6
|
if (size >= 6
|
||||||
&& (*mLinesVertices)[size - 1] == (*mLinesVertices)[size - 6]
|
&& (*mLinesVertices)[size - 1] == (*mLinesVertices)[size - 6]
|
||||||
|
@ -154,6 +155,7 @@ void DebugDrawer::drawLine(const btVector3 &from, const btVector3 &to, const btV
|
||||||
mLinesVertices->pop_back();
|
mLinesVertices->pop_back();
|
||||||
mLinesColors->pop_back();
|
mLinesColors->pop_back();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebugDrawer::drawTriangle(const btVector3& v0, const btVector3& v1, const btVector3& v2, const btVector3& color, btScalar)
|
void DebugDrawer::drawTriangle(const btVector3& v0, const btVector3& v1, const btVector3& v2, const btVector3& color, btScalar)
|
||||||
|
|
Loading…
Reference in a new issue