Core: Add getRootObjectsIgnoreLinks and fix bugs in tree.cpp and AssemblyObject.cpp, CommandInsertLink.py, UtilsAssembly.py
This commit is contained in:
committed by
Yorik van Havre
parent
7096125038
commit
5f4dd814ea
@@ -2662,7 +2662,7 @@ void TreeWidget::sortDroppedObjects(TargetItemInfo& targetInfo, std::vector<App:
|
||||
propGroup->setValue(sortedObjList);
|
||||
}
|
||||
else if (targetInfo.targetItem->type() == TreeWidget::DocumentType) {
|
||||
objList = targetInfo.targetDoc->getRootObjects();
|
||||
objList = targetInfo.targetDoc->getRootObjectsIgnoreLinks();
|
||||
// First we need to sort objList by treeRank.
|
||||
std::sort(objList.begin(), objList.end(),
|
||||
[](App::DocumentObject* a, App::DocumentObject* b) {
|
||||
|
||||
Reference in New Issue
Block a user