[SOLVED][BUG] SceneNode with no parent is rendered

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

[SOLVED][BUG] SceneNode with no parent is rendered

Post by al2950 »

Hi

It would seem there is a regression bug which I cant quite work out why. If you do the following, the item is rendered, which it should not be

Code: Select all

SceneNode* node = sceneManager->createSceneNode();
Item* item = sceneManager->createItem("MyMesh");
node->attachObject(item);
I am using Ogre 2.2.5. Any tips of how to resolve would be appreciated
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: [SOLVED][BUG] SceneNode with no parent is rendered

Post by al2950 »

Note to self. RTFM! However we should probably update the code comments.

Have left post here just incase someone else finds this and has the same 'issue' Ogre 2.1+ change the attach/detach behaviour, see here;
https://ogrecave.github.io/ogre-next/ap ... Visibility
Post Reply