App/Origin: big refactoring
- Rebase App::Origin on App::DocumentObject - Keep all control over the Origin structure inside the Origin and it's ViewProvider - Add OriginFeature class as common base for App::Plane and App::Line - Rebase App::Plane and App::Line on top of newly created class and move to the file. - Change Origin's ViewProvider API associated with temporary display - Lots of associated changes to files - Several minor fixes - Lots of new bugs
This commit is contained in:
committed by
Stefan Tröger
parent
8bad396f16
commit
305151be34
@@ -2084,7 +2084,6 @@ void Document::remObject(const char* sName)
|
||||
pos->second->unsetupObject();
|
||||
}
|
||||
signalDeletedObject(*(pos->second));
|
||||
// TODO Check me if it's needed (2015-09-01, Fat-Zer)
|
||||
pos->second->StatusBits.reset (ObjectStatus::Delete); // Unset the bit to be on the safe side
|
||||
|
||||
if (!d->vertexMap.empty()) {
|
||||
@@ -2140,6 +2139,7 @@ void Document::remObject(const char* sName)
|
||||
/// Remove an object out of the document (internal)
|
||||
void Document::_remObject(DocumentObject* pcObject)
|
||||
{
|
||||
// TODO Refactoring: share code with Document::remObject() (2015-09-01, Fat-Zer)
|
||||
_checkTransaction(pcObject);
|
||||
|
||||
std::map<std::string,DocumentObject*>::iterator pos = d->objectMap.find(pcObject->getNameInDocument());
|
||||
|
||||
Reference in New Issue
Block a user