Inertia tensor of aggregate mass

Hey guys. Anyone know how to get the inertia tensor of a bunch of masses in a tree?

Right now I’m just adding all the individual inertia tensors. I can’t find any clear explanations