SceneNode.getChild() returns Node instead of SceneNode

pusheax

25-05-2012 11:53:46

Hi,
I'm using python-ogre 1.7.2.
Code:

childNode = parentSceneNode.getChild(i)
self.log.debug("{} {}".format(parentSceneNode, childNode))

prints:

<ogre.renderer.OGRE._ogre_.SceneNode object at 0x650a830> <ogre.renderer.OGRE._ogre_.Node object at 0x6d0a7c0>

Is this a bug?

pusheax

25-05-2012 12:48:37

Ok. It seems that you have to use Node.castAsSceneNode().