Revert "ObjectIdentifier: Issue #2389: Needs to set documentNameSet and documentObjectNameSet to true to resolve properly."

This reverts commit 670eaf04a6.
This commit is contained in:
wmayer 2016-01-26 20:58:28 +01:00
parent d7dd512428
commit 1b8cd9b91c

View File

@ -125,9 +125,7 @@ ObjectIdentifier::ObjectIdentifier(const App::PropertyContainer * _owner, const
const Document * doc = docObj->getDocument();
documentName = String(doc->getName(), false, true);
documentNameSet = true;
documentObjectName = String(docObj->getNameInDocument(), false, true);
documentObjectNameSet = true;
}
if (property.size() > 0)
@ -141,8 +139,8 @@ ObjectIdentifier::ObjectIdentifier(const App::PropertyContainer * _owner, const
ObjectIdentifier::ObjectIdentifier(const Property &prop)
: owner(prop.getContainer())
, documentNameSet(true)
, documentObjectNameSet(true)
, documentNameSet(false)
, documentObjectNameSet(false)
, propertyIndex(-1)
{
DocumentObject * docObj = freecad_dynamic_cast<DocumentObject>(prop.getContainer());