Joining objects loose UV

When joining two objects having each their own material, one of the objects loose it’s UV.