part deletion handling

-remove everxthing that belongs to a part on deletion
-disallow to delete the origin by the user and only remove it when Part is being deleted
This commit is contained in:
Stefan Tröger
2015-07-08 07:06:49 +02:00
parent 54dfe5cbff
commit 1ebe3e729c
13 changed files with 455 additions and 11 deletions

View File

@@ -98,7 +98,7 @@ void GeoFeatureGroup::removeObjectFromDocument(DocumentObject* obj)
}
}
this->getDocument()->remObject(obj->getNameInDocument());
this->getDocument()->remObject(obj->getNameInDocument(), true);
}
DocumentObject *GeoFeatureGroup::getObject(const char *Name) const