I have a problem with ISceneManager::loadScene().
When I use the value by default rootNode = 0 to load my scene, it works well.
But when I want use a specific rootNode for my scene, my program crash...
Code: Select all
if (!baseNode)
baseNode = m_scnMgr->addEmptySceneNode();
m_scnMgr->loadScene("fileName.irr", 0);
// Works
Code: Select all
if (!baseNode)
baseNode = m_scnMgr->addEmptySceneNode();
m_scnMgr->loadScene("fileName.irr", 0, baseNode);
// Don't works
But with a basic scene exported with CopperCube-Irredit 4.0 I have a crash.
Code: Select all
if (!baseNode)
baseNode = m_scnMgr->addEmptySceneNode();
m_scnMgr->loadScene("example.irr", 0, baseNode);
// Works
https://dl.dropboxusercontent.com/u/24460773/test18.irr
Do you know why ?
Is it a bug ?