mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Add a note now we can actually start working
This commit is contained in:
@ -141,6 +141,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
|||||||
// Irrlicht doesn't null terminate the raw output. So we must doe it ourself.
|
// Irrlicht doesn't null terminate the raw output. So we must doe it ourself.
|
||||||
buffer[file->getSize()] = '\0';
|
buffer[file->getSize()] = '\0';
|
||||||
|
|
||||||
|
// We have to catch a JSON parse error or else the game will segfault.
|
||||||
json data;
|
json data;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -167,7 +168,7 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
|||||||
IAnimatedMesh* finalizedModel = parseModel(data);
|
IAnimatedMesh* finalizedModel = parseModel(data);
|
||||||
|
|
||||||
|
|
||||||
return nullptr;
|
return finalizedModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace scene
|
} // namespace scene
|
||||||
|
Reference in New Issue
Block a user