Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 bug in neRigidBodyBase::Active()

open
nobody
None
5
2008-06-05
2008-06-05
Anonymous
No

When I try to set any neRigidBody or neAnimatedBody to inactive when it is already false, it will make the neRigidBody or neAnimatedBody active. I could workaround that by checking it myself first, but I changed the the following bit from the top of the function.

was...

void neRigidBodyBase::Active(neBool yes, neRigidBodyBase * hint)
{
if (isActive && yes)
return;

now...

void neRigidBodyBase::Active(neBool yes, neRigidBodyBase * hint)
{
if (isActive == yes)
return;

which works much better.

-rjn

Discussion