Skip to content
Snippets Groups Projects

make sure the two types in replace match

Merged Max Lyon requested to merge replace_types into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -148,7 +148,7 @@ void NonManifoldVertexFixingT<MeshT>::fix()
@@ -148,7 +148,7 @@ void NonManifoldVertexFixingT<MeshT>::fix()
//if one face wasn't found in the component = 1 run, then it is a new component, due to split
//if one face wasn't found in the component = 1 run, then it is a new component, due to split
if (componentCount > 1 && v_new.is_valid())
if (componentCount > 1 && v_new.is_valid())
{
{
std::replace(f_vertices.begin(),f_vertices.end(),*v_iter,v_new);
std::replace(f_vertices.begin(),f_vertices.end(),typename MeshT::VertexHandle(*v_iter),v_new);
mesh_.delete_face(face,false);
mesh_.delete_face(face,false);
mesh_.add_face(f_vertices);
mesh_.add_face(f_vertices);
Loading