Move isLink and isLinkGroup from AssemblyObject to DocumentObject
This commit is contained in:
@@ -2282,6 +2282,16 @@ bool Link::canLinkProperties() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Link::isLink() const
|
||||
{
|
||||
return ElementCount.getValue() == 0;
|
||||
}
|
||||
|
||||
bool Link::isLinkGroup() const
|
||||
{
|
||||
return ElementCount.getValue() > 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace App {
|
||||
@@ -2309,6 +2319,11 @@ bool LinkElement::canDelete() const {
|
||||
return !owner || !owner->getDocument()->getObjectByID(_LinkOwner.getValue());
|
||||
}
|
||||
|
||||
bool LinkElement::isLink() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
App::Link* LinkElement::getLinkGroup() const
|
||||
{
|
||||
std::vector<App::DocumentObject*> inList = getInList();
|
||||
|
||||
Reference in New Issue
Block a user