Update of /cvsroot/opal/opal/src/ODE
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13627/src/ODE
Modified Files:
ODESimulator.cpp
Log Message:
New Spaces are now automatically children of the Simulator root Space. Previously, there was no way for new Spaces to be children of the Simulator root Space.
Index: ODESimulator.cpp
===================================================================
RCS file: /cvsroot/opal/opal/src/ODE/ODESimulator.cpp,v
retrieving revision 1.102
retrieving revision 1.103
diff -C2 -d -r1.102 -r1.103
*** ODESimulator.cpp 19 Apr 2005 14:20:37 -0000 1.102
--- ODESimulator.cpp 19 Jun 2005 17:09:13 -0000 1.103
***************
*** 98,102 ****
Space* ODESimulator::createSpace()
{
! Space* newSpace = new ODESpace();
addSpace(newSpace);
return newSpace;
--- 98,106 ----
Space* ODESimulator::createSpace()
{
! ODESpace* newSpace = new ODESpace();
!
! // Add this new Space as a child of the Simulator's root Space.
! dSpaceAdd(mRootSpaceID, (dGeomID)newSpace->internal_getSpaceID());
!
addSpace(newSpace);
return newSpace;
|