Fix include for std::numerical_limits; Fix uninitialized params

This commit is contained in:
Xuchen Han 2020-03-13 15:03:08 -07:00
parent 4b35af3830
commit a807d4c0c1
2 changed files with 3 additions and 3 deletions

View File

@ -1573,9 +1573,9 @@ void btSoftBodyHelpers::extrapolateBarycentricWeights(btSoftBody* psb)
const btVector3& p = psb->m_renderNodes[i].m_x;
btVector4 bary;
btVector4 optimal_bary;
btScalar min_bary_weight = -1e3;
btScalar min_bary_weight = -SIMD_INFINITY;
btAlignedObjectArray<const btSoftBody::Node*> optimal_parents;
btScalar dist, optimal_dist;
btScalar dist = 0, optimal_dist = 0;
for (int j = 0; j < psb->m_faces.size(); ++j)
{
const btSoftBody::Face& f = psb->m_faces[j];

View File

@ -41,7 +41,7 @@
#ifndef btImplicitQRSVD_h
#define btImplicitQRSVD_h
#include <limits>
#include "btMatrix3x3.h"
class btMatrix2x2
{