public boolean equals(Animation animation)
	{
		if(!name.equals(animation.getName()))
			return false;
		if(duration != animation.getDuration())
			return false;
		if(hasSubAnimations())
			if(subAnimations.size() != animation.getSubAnimations().size())
				return false;
			else
			{
				for(int i=0; i<subAnimations.size(); i++)
					if(!subAnimations.get(i).equals(animation.getSubAnimations().get(i)))
						return false;
			}
		if(poses.size() != animation.getPoses().size())
			return false;
		for(int i=0; i<poses.size(); i++)
			if(!poses.get(i).equals(animation.getPoses().get(i)))
				return false;
		return true;
	}