We solved it on of080, see the code below. It should work on the newer versions too.
testApp::setup() {
reloadTextures(); //to not to write the same loader code twice
}
testApp::pause() {
model->clear();
}
testApp::reloadTextures() {
model->loadModel(modelpath, false);
}
And we wrote a lot of code inside ofxAssimpModelLoader::clear(). I don’t remember which part was for this issue but it seems these lines should do the job:
ofxAssimpModelLoader::clear() {
for (unsigned int i = 0; i < modelMeshes.size(); ++i){
modelMeshes[i].vbo.clear();
}
}