mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Fix crash when using 'showscenegraph 1' console command
This commit is contained in:
parent
f73aa9f27a
commit
7f342374fc
@ -3633,8 +3633,11 @@ namespace MWWorld
|
||||
std::string World::exportSceneGraph(const Ptr &ptr)
|
||||
{
|
||||
std::string file = mUserDataPath + "/openmw.osgt";
|
||||
mRendering->pagingBlacklistObject(mStore.find(ptr.getCellRef().getRefId()), ptr);
|
||||
mWorldScene->removeFromPagedRefs(ptr);
|
||||
if (!ptr.isEmpty())
|
||||
{
|
||||
mRendering->pagingBlacklistObject(mStore.find(ptr.getCellRef().getRefId()), ptr);
|
||||
mWorldScene->removeFromPagedRefs(ptr);
|
||||
}
|
||||
mRendering->exportSceneGraph(ptr, file, "Ascii");
|
||||
return file;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user