When CSceneManager calls the constructor of the billboard in addBillboardSceneNode, the ISceneNode calls parent->addChild... where the parent is the CSceneManager object in memory.
For a few extra reasons, I'm doing this from outside CSceneManager (I'm re-implementing the billboard), and when I do this:
Code: Select all
((ISceneNode*) irrSceneMgr)->addChild(bill);
Does anyone know what could be happening?
Thanks for reading!
EDIT:
while I still don't know what's wrong, I used getRootSceneNode() to get the right ISceneNode to use as parent and create the billboard. I guess we can say this has been "solved"