Commit d52945f6 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Merge branch 'master' of roosevelt.informatik.rwth-aachen.de:OpenFlipper-Free/OpenFlipper-Free

parents c19fe715 d4c83ffb
......@@ -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