Fixed Decimater when removing priority module

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@85 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2009-03-19 12:23:13 +00:00
parent b6632e0754
commit 81d26755d2

View File

@@ -127,6 +127,13 @@ public: //--------------------------------------------------- module management
if (!_mh.is_valid())
return false;
if ( cmodule_ == _mh.module() ) {
cmodule_ = 0;
initialized_ = false; // reset initialized state
_mh.clear();
return true;
}
typename ModuleList::iterator it = std::find(bmodules_.begin(),
bmodules_.end(),
_mh.module() );