소스 검색

Merge pull request #689 from rextimmy/forest_physx2_fix

Physx 2.8 actor release fix
LuisAntonRebollo 11 년 전
부모
커밋
4a6384486c
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      Engine/source/T3D/physics/physx/pxWorld.cpp

+ 2 - 3
Engine/source/T3D/physics/physx/pxWorld.cpp

@@ -448,9 +448,8 @@ void PxWorld::releaseActor( NxActor &actor )
    // Clear the userdata.
    actor.userData = NULL;   
 
-   // If the scene is not simulating then we have the
-   // write lock and can safely delete it now.
-   if ( !mIsSimulating )
+   // actors are one of the few objects that are stable removing this way in physx 2.8
+   if (mScene->isWritable() )
    {
       mScene->releaseActor( actor );
    }