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:
@@ -127,6 +127,13 @@ public: //--------------------------------------------------- module management
|
|||||||
if (!_mh.is_valid())
|
if (!_mh.is_valid())
|
||||||
return false;
|
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(),
|
typename ModuleList::iterator it = std::find(bmodules_.begin(),
|
||||||
bmodules_.end(),
|
bmodules_.end(),
|
||||||
_mh.module() );
|
_mh.module() );
|
||||||
|
|||||||
Reference in New Issue
Block a user