diff --git a/vcg/simplex/edge/topology.h b/vcg/simplex/edge/topology.h index c6124a58..eba1481a 100644 --- a/vcg/simplex/edge/topology.h +++ b/vcg/simplex/edge/topology.h @@ -203,8 +203,9 @@ void VEEdgeSplit(MeshType &poly, typename MeshType::EdgeType *e, typename MeshTy edge::VEDetach(*e,1); e->V(1) = &v; edge::VEAppend(e,1); -// tri::Allocator:: template PointerUpdater pu; - typename MeshType::EdgeIterator ei = tri::Allocator::AddEdges(poly, 1); + tri::Allocator:: template PointerUpdater pu; + typename MeshType::EdgeIterator ei = tri::Allocator::AddEdges(poly, 1, pu); + pu.Update(e); ei->ImportData(*e); ei->V(0)=&v; ei->V(1)=v1;