Page 1 of 1

Not a bug

Posted: Wed Oct 27, 2004 9:45 pm
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

Posted: Sat Oct 30, 2004 9:37 am
by niko
Or maybe an additional method like IAnimator::OnSceneNodeAttached.