This is a complicated question that can have several correct and differing answers.  It really needs an analysis of the individual case to give an accurate answer.  However, there are some general rules.
First, a Chapter 13 bankruptcy can discharge a true property settlement.  Property settlements are different from child support, alimony, or other domestic support obligation, which are often called DSOs.  Chapter 13 does not discharge (wipe out) any DSO but can discharge a property settlement (like the responsibility to pay a debt).  As a result, Chapter 13 can dramatically affect the divorce.
Second, only a divorce court can determine property rights, not a bankruptcy court. Therefore, if there is an issue of who should get what in a divorce and if a bankruptcy has been filed (Chapter 13 or Chapter 7) then those issues are determined by the divorce court.
Third, a contentious issue in Chapter 13 cases is whether a divorce decree’s wording creates a property settlement or a DSO.  There are many times with the decree is not clear.  In that situation, only the bankruptcy court can interpret the decree.