So I have gotten animation blending working with animation and animation state. I have not gotten this to work with an animation controller however. If I read the docs right I create an animation state then assign that to a layer. I then use the layer in the animation controller. It does not play both animations together. Like it did before using the animation controller.
Code:
const int LAYER_MOVE = 1;
const int LAYER_ATTACK = 0;
Animation* combat_sword_idle = cache->GetResource<Animation>("Models/combat_sword_move_front.ani");
Animation* combat_sword_melee2 = cache->GetResource<Animation>("Models/combat_sword_melee2.ani");
Bone* root = modelObject2->GetSkeleton().GetBone("spine");
state = modelObject2->AddAnimationState(combat_sword_idle);
state->SetWeight(1.0f);
state->SetLooped(true);
state->SetLayer(LAYER_MOVE);
state2 = modelObject2->AddAnimationState(combat_sword_melee2);
state2->SetWeight(0.0f);
state2->SetLooped(true);
state2->SetStartBone(root);
state2->SetLayer(LAYER_ATTACK);
swordmelee->Play("Models/combat_sword_melee2.ani", LAYER_ATTACK, true, 0.5f);
swordIdle->Play("Models/combat_sword_move_front.ani", LAYER_MOVE, true, 0.5f);