removed useless test : the geometry is either a Geometry of a BufferGeometry