Assembly: Fix flexible sub-assemblies cannot be deleted (#19100)
This commit is contained in:
committed by
Chris Hennes
parent
e49a985398
commit
4827fc53be
@@ -1107,7 +1107,9 @@ bool ViewProviderAssembly::canDelete(App::DocumentObject* objBeingDeleted) const
|
||||
// List its joints
|
||||
std::vector<App::DocumentObject*> joints = assemblyPart->getJointsOfObj(obj);
|
||||
for (auto* joint : joints) {
|
||||
objToDel.push_back(joint);
|
||||
if (std::ranges::find(objToDel, joint) == objToDel.end()) {
|
||||
objToDel.push_back(joint);
|
||||
}
|
||||
}
|
||||
joints = assemblyPart->getJointsOfPart(obj);
|
||||
for (auto* joint : joints) {
|
||||
|
||||
Reference in New Issue
Block a user