Assembly: Make sure that when a components is deleted its joints are as well.

This commit is contained in:
PaddleStroke
2024-08-06 18:17:57 +02:00
committed by Chris Hennes
parent 1824322369
commit 8fdbeeced6
2 changed files with 30 additions and 11 deletions

View File

@@ -575,7 +575,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getJointsOfObj(App::DocumentOb
App::DocumentObject* obj1 = getObjFromRef(joint, "Reference1");
App::DocumentObject* obj2 = getObjFromRef(joint, "Reference2");
if (obj == obj1 || obj == obj2) {
jointsOf.push_back(obj);
jointsOf.push_back(joint);
}
}