[Failed] Node taken as the root node of the scene.

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
wing64
Competition winner
Posts: 242
Joined: Wed Jul 23, 2008 2:35 am
Location: Thailand
Contact:

[Failed] Node taken as the root node of the scene.

Post by wing64 »

CSceneLoaderIrr.cpp line 140 (SVN Rev.3597)

Code: Select all

readSceneNode(reader, node, userDataSerializer);
changed

Code: Select all

readSceneNode(reader, parent, userDataSerializer);
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Sorry, I don't know where the problem is. Looking at the code it seems to be ok as it is.
wing64
Competition winner
Posts: 242
Joined: Wed Jul 23, 2008 2:35 am
Location: Thailand
Contact:

Post by wing64 »

Sorry for un clear topic. A problem is occurred when call loadscene and pass your own root scenenode is parameter then loadscene use smgr root instead my root.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

There is a check in CSceneLoaderIrr.cpp:

Code: Select all

if (!parent && IRR_XML_FORMAT_SCENE==reader->getNodeName())
	node = SceneManager->getRootSceneNode();
So you sure that parent is not null, then your root node in IRR file is not named as "irr_scene" (some-why this is necessary).

CSceneManager' constructor states:

Code: Select all

IRR_XML_FORMAT_SCENE(L"irr_scene")
Post Reply