| 69 | /////////////////////////////////////////////////////////////////////////////// |
| 70 | |
| 71 | static PX_FORCE_INLINE bool removeFromSceneCheck(NpScene* npScene, PxScene* scene, const char* name) |
| 72 | { |
| 73 | if (scene == static_cast<PxScene*>(npScene)) |
| 74 | { |
| 75 | return true; |
| 76 | } |
| 77 | else |
| 78 | { |
| 79 | Ps::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__, "%s not assigned to scene or assigned to another scene. Call will be ignored!", name); |
| 80 | return false; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /////////////////////////////////////////////////////////////////////////////// |
| 85 |
no test coverage detected