Commit d4c83ffb authored by Jan Möbius's avatar Jan Möbius

Fix Holefiller bug

closes #62
parent f81c9401
Pipeline #2258 failed with stage
in 80 minutes and 5 seconds
......@@ -354,25 +354,28 @@ void HoleFillerPlugin::slotObjectUpdated( int _identifier, const UpdateType& _ty
bool updated = false;
// get holes for TRIMESH
if ( object->dataType( DATA_TRIANGLE_MESH ) ) {
if ( _type.contains(UPDATE_TOPOLOGY) ) {
HoleInfo< TriMesh >* holeInfo = dynamic_cast< HoleInfo< TriMesh >* > ( object->objectData(HOLEINFO) );
if ( holeInfo ) {
holeInfo->getHoles();
updated = true;
// get holes for TRIMESH
if ( object->dataType( DATA_TRIANGLE_MESH ) ) {
HoleInfo< TriMesh >* holeInfo = dynamic_cast< HoleInfo< TriMesh >* > ( object->objectData(HOLEINFO) );
if ( holeInfo ) {
holeInfo->getHoles();
updated = true;
}
}
}
// get holes for POLYMESH
else if ( object->dataType( DATA_POLY_MESH ) ) {
// get holes for POLYMESH
else if ( object->dataType( DATA_POLY_MESH ) ) {
HoleInfo< PolyMesh >* holeInfo = dynamic_cast< HoleInfo< PolyMesh >* > ( object->objectData(HOLEINFO) );
if ( holeInfo ) {
holeInfo->getHoles();
updated = true;
HoleInfo< PolyMesh >* holeInfo = dynamic_cast< HoleInfo< PolyMesh >* > ( object->objectData(HOLEINFO) );
if ( holeInfo ) {
holeInfo->getHoles();
updated = true;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment