compSub,
compSub->GetShapeType() );
geomGen->RemoveObject( compSub );
- if ( shared->length() > 0 )
+ compSub->UnRegister();
+ if ( shared->length() > 0 ) {
geomGen->RemoveObject( shared[0] );
+ shared[0]->UnRegister();
+ }
return ( shared->length() > 0 );
}
}
//================================================================================
/*!
- * \brief Return name of the algorithm that does not support submeshes and makes
- * submesh creation useless
+ * \brief Return name of the algorithm that does not support sub-meshes and makes
+ * sub-mesh creation useless
* \retval char* - string is to be deleted!!!
*/
//================================================================================