[fixed] getJointNode from IAnimatedMeshSceneNode

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
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

[fixed] getJointNode from IAnimatedMeshSceneNode

Post by xray »

When I call getJointNode((u32) x) from an IAnimatedMeshScene node, Ill get a "Joint not loaded into node". But when I call getJointNode with the name, for example getJointNode("cube") it works. I know that the number is correct because I check the index by calling getBoneIndex() from IBoneSceneNode. And this is also working:

Code: Select all

	scene::IBoneSceneNode *bone = node->getJointNode( node->getJointNode("cube")->getBoneIndex() );
cheers
Luke
Admin
Posts: 449
Joined: Fri Jul 14, 2006 7:55 am
Location: Australia
Contact:

Post by Luke »

thanks,

was missing a call to load the joints in the mesh with the getJointNode(u32) function

if you were to call getJointNode(string) before any getJointNode(u32) call it would have worked.

fixed in the SVN.
[url=irc://irc.freenode.net/irrlicht]irrlicht irc[/url] - corrodinggames.com
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Excellent, thanks for sorting this.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply