clear some c++ warnings.
This commit is contained in:
@@ -292,7 +292,7 @@ bool Scene::update(double timestamp, double timestep, unsigned int numsubstep, b
|
||||
return true;
|
||||
}
|
||||
|
||||
double maxqdot;
|
||||
// double maxqdot; // UNUSED
|
||||
e_scalar nlcoef;
|
||||
SceneLock lockCallback(this);
|
||||
Frame external_pose;
|
||||
@@ -454,7 +454,7 @@ bool Scene::update(double timestamp, double timestep, unsigned int numsubstep, b
|
||||
// We will pass the joint velocity to each object and they will recommend a maximum timestep
|
||||
timesubstep = timeleft;
|
||||
// get armature max joint velocity to estimate the maximum duration of integration
|
||||
maxqdot = m_qdot.cwise().abs().maxCoeff();
|
||||
// maxqdot = m_qdot.cwise().abs().maxCoeff(); // UNUSED
|
||||
double maxsubstep = nlcoef*m_maxstep;
|
||||
if (maxsubstep < m_minstep)
|
||||
maxsubstep = m_minstep;
|
||||
|
||||
@@ -860,13 +860,11 @@ static int convert_channels(IK_Scene *ikscene, PoseTree *tree)
|
||||
{
|
||||
IK_Channel *ikchan;
|
||||
bPoseChannel *pchan;
|
||||
Bone *bone;
|
||||
int a, flag, njoint;
|
||||
|
||||
njoint = 0;
|
||||
for(a=0, ikchan = ikscene->channels; a<ikscene->numchan; ++a, ++ikchan) {
|
||||
pchan= tree->pchan[a];
|
||||
bone= pchan->bone;
|
||||
ikchan->pchan = pchan;
|
||||
ikchan->parent = (a>0) ? tree->parent[a] : -1;
|
||||
ikchan->owner = ikscene->blArmature;
|
||||
|
||||
@@ -405,6 +405,7 @@ static PyObject* gPyCreateConstraint(PyObject* self,
|
||||
PyObject* args,
|
||||
PyObject* kwds)
|
||||
{
|
||||
/* FIXME - physicsid is an int being cast to a pointer, should at least use PyCapsule */
|
||||
int physicsid=0,physicsid2 = 0,constrainttype=0,extrainfo=0;
|
||||
int len = PyTuple_Size(args);
|
||||
int success = 1;
|
||||
|
||||
@@ -1919,10 +1919,10 @@ static void restorePySysObjects(void)
|
||||
|
||||
// Copied from bpy_interface.c
|
||||
static struct _inittab bge_internal_modules[]= {
|
||||
{"mathutils", BPyInit_mathutils},
|
||||
{"bgl", BPyInit_bgl},
|
||||
{"blf", BPyInit_blf},
|
||||
{"aud", AUD_initPython},
|
||||
{(char *)"mathutils", BPyInit_mathutils},
|
||||
{(char *)"bgl", BPyInit_bgl},
|
||||
{(char *)"blf", BPyInit_blf},
|
||||
{(char *)"aud", AUD_initPython},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user