Not a bug

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
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Not a bug

Post by schick »

Why not change the ISceneNode::addAnimator() from

Code: Select all

virtual void addAnimator(ISceneNodeAnimator* animator)
{
	if (animator)
	{
		Animators.push_back(animator);
		animator->grab();
	}
}
to

Code: Select all

virtual void addAnimator(ISceneNodeAnimator* animator)
{
	if (animator)
	{
		Animators.push_back(animator);
		animator->grab();
	}

        animator->animateNode( this, 0);
}
It would be great so the animator could "know" what node it is attached to.

Greetings,

schick
Please send me an e-mail instead of a private message.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Or maybe an additional method like IAnimator::OnSceneNodeAttached.
Post Reply