diff --git a/src/Gui/DAGView/DAGModel.cpp b/src/Gui/DAGView/DAGModel.cpp index b292d115cf..6bfec76745 100644 --- a/src/Gui/DAGView/DAGModel.cpp +++ b/src/Gui/DAGView/DAGModel.cpp @@ -310,18 +310,7 @@ void Model::slotChangeObject(const ViewProviderDocumentObject &VPDObjectIn, cons auto *text = (*theGraph)[record.vertex].text.get(); text->setPlainText(QString::fromUtf8(record.DObject->Label.getValue())); } - - //link changes. these require a recalculation of connectors. - const static std::unordered_set linkTypes = - { - "App::PropertyLink", - "App::PropertyLinkList", - "App::PropertyLinkSub", - "App::PropertyLinkSubList", - "App::PropertyLinkPickList" - }; - - if (linkTypes.find(propertyIn.getTypeId().getName()) != linkTypes.end()) + else if (propertyIn.isDerivedFrom(App::PropertyLinkBase::getClassTypeId())) { const GraphLinkRecord &record = findRecord(&VPDObjectIn, *graphLink); boost::clear_vertex(record.vertex, *theGraph);