mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 02:54:36 +00:00
- fixed "svn and sfn are not updated in MeshLabServer" bug
This commit is contained in:
parent
4eb1bd6b8f
commit
98b0e889e7
@ -410,6 +410,13 @@ public:
|
||||
dt.set(pm, atts);
|
||||
iFilter->glContext->initPerViewRenderingData(meshDocument.mm()->id(), dt);
|
||||
}
|
||||
|
||||
if (meshDocument.mm() != NULL)
|
||||
{
|
||||
meshDocument.mm()->cm.svn = int(vcg::tri::UpdateSelection<CMeshO>::VertexCount(meshDocument.mm()->cm));
|
||||
meshDocument.mm()->cm.sfn = int(vcg::tri::UpdateSelection<CMeshO>::FaceCount(meshDocument.mm()->cm));
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -422,6 +429,12 @@ public:
|
||||
dt.set(pm, atts);
|
||||
iFilter->glContext->initPerViewRenderingData(mm->id(), dt);
|
||||
}
|
||||
|
||||
if (mm != NULL)
|
||||
{
|
||||
mm->cm.svn = int(vcg::tri::UpdateSelection<CMeshO>::VertexCount(mm->cm));
|
||||
mm->cm.sfn = int(vcg::tri::UpdateSelection<CMeshO>::FaceCount(mm->cm));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -497,6 +510,12 @@ public:
|
||||
dt.set(pm, atts);
|
||||
cppfilt->glContext->initPerViewRenderingData(meshDocument.mm()->id(), dt);
|
||||
}
|
||||
|
||||
if (meshDocument.mm() != NULL)
|
||||
{
|
||||
meshDocument.mm()->cm.svn = int(vcg::tri::UpdateSelection<CMeshO>::VertexCount(meshDocument.mm()->cm));
|
||||
meshDocument.mm()->cm.sfn = int(vcg::tri::UpdateSelection<CMeshO>::FaceCount(meshDocument.mm()->cm));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -509,6 +528,13 @@ public:
|
||||
dt.set(pm, atts);
|
||||
cppfilt->glContext->initPerViewRenderingData(mm->id(), dt);
|
||||
}
|
||||
|
||||
if (mm != NULL)
|
||||
{
|
||||
mm->cm.svn = int(vcg::tri::UpdateSelection<CMeshO>::VertexCount(mm->cm));
|
||||
mm->cm.sfn = int(vcg::tri::UpdateSelection<CMeshO>::FaceCount(mm->cm));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user