Update of /cvsroot/opal/opal/src/ODE
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24043/src/ODE
Modified Files:
ODESolid.cpp
Log Message:
minor fix to sleep parameter set function
Index: ODESolid.cpp
===================================================================
RCS file: /cvsroot/opal/opal/src/ODE/ODESolid.cpp,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** ODESolid.cpp 6 Apr 2005 04:48:45 -0000 1.82
--- ODESolid.cpp 10 Apr 2005 23:09:19 -0000 1.83
***************
*** 393,400 ****
--- 393,402 ----
if (sleeping)
{
+ mData.sleeping = true;
dBodyDisable(mBodyID);
}
else
{
+ mData.sleeping = false;
dBodyEnable(mBodyID);
}
***************
*** 408,411 ****
--- 410,415 ----
}
+ // The ODE body may fall asleep at unknown times, so we need to
+ // get the data straight from ODE.
if (dBodyIsEnabled(mBodyID))
{
|