Mecanim avatar importing is absolute notsense.

So I’ve got two characters with the same armature structure (minus a few hair bones). Exact same avatar settings, exact same everything. We’ll call 'em Red and Blue.

Blue’s animations preview and play on Blue perfectly upright as they should be. On the default preview character and Red, they face the characters into the ground.

Red’s animations do the same to Red and the default preview character; face them into the ground. But when played on Blue, he faces upwards.

Both Red and Blue’s default take face them upright.

Blue’s hips instantly shift to his Origin, putting his body from the waist down into the ground. Red’s is fine.

Blue’s “floor” plane is on his hips, and is affected by XZ transform settings instead of Y. Red’s is under his feet where it should be, and is affected by Y and XZ properly.

What in the world could be causing something so weird when all their settings are exactly the same?

EDIT: I managed to fix it for the time being by creating a new project and appending the armature, also re-importing the character model from the original source. Was already weighted, so it didn’t take much time. Still, it would be nice to figure out why it happened.

UPDATE
Turns out, my character’s name is the problem. Whenever it’s named “Blue” as it should be, it gets reset to that funky behavior. When renamed to anything else, it’s perfectly fine. UUUUUUURRRRRGHGHGH!

Not exactly sure how the setup is but usually engines are very sensitive to the parent pivot point (Centre of Mass) being at exaclty 0, 0, on the X, Y axis. In Unity’s case X, Z. I notice though with max that unity changes the Y to its Z. Dont know if this is your problem but with the Dassault engine you could get strange voodoo if the COM was not zeroed in the horizontal.

Now that I think about it, it could be switching the “back” and “up” vectors of Blue. But it still doesn’t make much sense, since Red and Blue were constructed in exactly the same way.

I am using Blender, by the way.

Addendum: When I make Blue a Generic avatar, he works fine, except none of his nor Red’s body structure data is saved. When I press Apply, all the transforms are wiped.

I’ve remade Blue in a fresh new Blender project but nothing’s changed. There is absolutely no reason any of this should be happening.