12/8/2015 10:07 AM PST BY TMZ STAFF

According to final divorce docs, obtained by TMZ, Antonio made a lot of dough on "The Mask of Zorro," "Desperado," and "Spy Kids." He keeps all the cash from those flicks and she gets to keep what she made from her earlier work.

Melanie and Antonio split money from every movie either of them did between 2004 and 2014, including "Shrek 2," "Puss in Boots," "Machete Kills," "Expendables 3" and others.

It appears they signed some sort of postnup in 2004 which changed the financial deal of their marriage ... they married in 1996 but it seems they kept everything separate from the date of their marriage until 2004.

Antonio is not getting out clean ... he's paying her $65k a month in spousal support.