Fixed bug #659, seg fault on some meshes with materials.

Turns out rviz was assuming that submeshes were not re-used, but assimp does allow for it.
With this change, that is supported and no longer causes a seg-fault.