Commit 43762d63 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fix Holefiller bug

closes #62
parent 1ed86ea5
...@@ -354,25 +354,28 @@ void HoleFillerPlugin::slotObjectUpdated( int _identifier, const UpdateType& _ty ...@@ -354,25 +354,28 @@ void HoleFillerPlugin::slotObjectUpdated( int _identifier, const UpdateType& _ty
bool updated = false; bool updated = false;
// get holes for TRIMESH if ( _type.contains(UPDATE_TOPOLOGY) ) {
if ( object->dataType( DATA_TRIANGLE_MESH ) ) {
HoleInfo< TriMesh >* holeInfo = dynamic_cast< HoleInfo< TriMesh >* > ( object->objectData(HOLEINFO) ); // get holes for TRIMESH
if ( object->dataType( DATA_TRIANGLE_MESH ) ) {
if ( holeInfo ) {
holeInfo->getHoles(); HoleInfo< TriMesh >* holeInfo = dynamic_cast< HoleInfo< TriMesh >* > ( object->objectData(HOLEINFO) );
updated = true;
if ( holeInfo ) {
holeInfo->getHoles();
updated = true;
}
} }
}
// get holes for POLYMESH // get holes for POLYMESH
else if ( object->dataType( DATA_POLY_MESH ) ) { else if ( object->dataType( DATA_POLY_MESH ) ) {
HoleInfo< PolyMesh >* holeInfo = dynamic_cast< HoleInfo< PolyMesh >* > ( object->objectData(HOLEINFO) ); HoleInfo< PolyMesh >* holeInfo = dynamic_cast< HoleInfo< PolyMesh >* > ( object->objectData(HOLEINFO) );
if ( holeInfo ) { if ( holeInfo ) {
holeInfo->getHoles(); holeInfo->getHoles();
updated = true; 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