mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-16 15:30:25 +01:00
Add a note now we can actually start working
This commit is contained in:
parent
4aca3ee1c5
commit
fadbb249c6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user