mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
Make it so we can inline this
This commit is contained in:
parent
b4233a513b
commit
ec907d8771
|
@ -185,10 +185,11 @@ bool load(json data) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CB3DJSONMeshFileLoader::cleanUp(std::string failure) {
|
CSkinnedMesh* CB3DJSONMeshFileLoader::cleanUp(std::string failure) {
|
||||||
os::Printer::log(failure.c_str(), ELL_WARNING);
|
os::Printer::log(failure.c_str(), ELL_WARNING);
|
||||||
AnimatedMesh->drop();
|
AnimatedMesh->drop();
|
||||||
AnimatedMesh = 0;
|
AnimatedMesh = 0;
|
||||||
|
return AnimatedMesh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -218,6 +219,8 @@ bool CB3DJSONMeshFileLoader::parseJSONFile(io::IReadFile* file) {
|
||||||
os::Printer::log("JSON: Failed to parse!", ELL_WARNING);
|
os::Printer::log("JSON: Failed to parse!", ELL_WARNING);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I'm not sure if buffer and output gets dropped here.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ private:
|
||||||
json JSONDataContainer;
|
json JSONDataContainer;
|
||||||
|
|
||||||
// Methods.
|
// Methods.
|
||||||
void cleanUp(std::string);
|
CSkinnedMesh* cleanUp(std::string);
|
||||||
bool parseJSONFile(io::IReadFile* file);
|
bool parseJSONFile(io::IReadFile* file);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user