Find source of segfault
This commit is contained in:
@@ -593,6 +593,7 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::load() {
|
|||||||
*/
|
*/
|
||||||
CSkinnedMesh* 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);
|
||||||
|
//! This causes a segmentation fault.
|
||||||
if (AnimatedMesh != nullptr) {
|
if (AnimatedMesh != nullptr) {
|
||||||
AnimatedMesh->drop();
|
AnimatedMesh->drop();
|
||||||
AnimatedMesh = 0;
|
AnimatedMesh = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user