Fix valgrind warning
This commit is contained in:
parent
964d7bf8de
commit
876defbc29
@ -379,6 +379,7 @@ bool TriangleMesh::castRay(const btVector3 &from, const btVector3 &to,
|
|||||||
if(ray_callback.hasHit())
|
if(ray_callback.hasHit())
|
||||||
{
|
{
|
||||||
*xyz = ray_callback.m_hitPointWorld;
|
*xyz = ray_callback.m_hitPointWorld;
|
||||||
|
xyz->setW(0.0f);
|
||||||
*material = m_triangleIndex2Material[index];
|
*material = m_triangleIndex2Material[index];
|
||||||
|
|
||||||
if(normal)
|
if(normal)
|
||||||
|
Loading…
Reference in New Issue
Block a user