fixes a bug where total vertex count would not be updated when setting vertex attributes.
Merge pull request #3368 from tgfrerer/fix-totalVerts

fix missing vertex count update