PX_SERIALIZATION
| 48 | |
| 49 | // PX_SERIALIZATION |
| 50 | void NpMaterial::resolveReferences(PxDeserializationContext&) |
| 51 | { |
| 52 | // ### this one could be automated if NpMaterial would inherit from MaterialCore |
| 53 | // ### well actually in that case the pointer would not even be needed.... |
| 54 | mMaterial.setNxMaterial(this); // Resolve MaterialCore::mNxMaterial |
| 55 | |
| 56 | // Maybe not the best place to do it but it has to be done before the shapes resolve material indices |
| 57 | // since the material index translation table is needed there. This requires that the materials have |
| 58 | // been added to the table already. |
| 59 | NpPhysics::getInstance().addMaterial(this); |
| 60 | } |
| 61 | |
| 62 | void NpMaterial::onRefCountZero() |
| 63 | { |
no test coverage detected