Ejemplo n.º 1
0
//-----------------------------------------------------------------------------
NodeAnimationTrack *Animation::CreateNodeTrack(unsigned short handle, const std::string &name)
{
	if(m_nodeTrackList.find(handle) != m_nodeTrackList.end()){
		fprintf(stderr, "Animation::CreateNodeTrack : Node track with the specified hangle %d already exists\n",handle);
			return NULL;
	}
	NodeAnimationTrack *ret = new NodeAnimationTrack(this, name);
	m_nodeTrackList.insert(std::make_pair(handle, ret));
	ret->CreateNodeKeyFrame(0);//д╛холМ╪с╣зр╩ж║
	return ret;
}