update: make vertex attribute adding depending to vertex type.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>