| 95 | } |
| 96 | |
| 97 | static void releaseMesh(aiMesh **mesh) { |
| 98 | if (*mesh != nullptr) { |
| 99 | delete *mesh; |
| 100 | *mesh = nullptr; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // ------------------------------------------------------------------------------------------------ |
| 105 | // Imports the given file into the given scene structure. |