fixed bug attaching weight to wrong submesh

now weight->buffer_id  points to the number of the submesh being
processed, not the index to the submesh's data