Fem: Do not allow selection of external objects for analysis objects - fixes #23834
This commit is contained in:
committed by
Chris Hennes
parent
a85f53d0bb
commit
df82e7b71c
@@ -119,9 +119,16 @@ void TaskFemConstraintFixed::addToSelection()
|
||||
QMessageBox::warning(this, tr("Selection error"), tr("Selected object is not a part!"));
|
||||
return;
|
||||
}
|
||||
std::vector<std::string> subNames = it.getSubNames();
|
||||
App::DocumentObject* obj =
|
||||
ConstraintView->getObject()->getDocument()->getObject(it.getFeatName());
|
||||
|
||||
App::DocumentObject* obj = it.getObject();
|
||||
if (obj->getDocument() != pcConstraint->getDocument()) {
|
||||
QMessageBox::warning(this,
|
||||
tr("Selection error"),
|
||||
tr("External object selection is not supported"));
|
||||
return;
|
||||
}
|
||||
|
||||
const std::vector<std::string>& subNames = it.getSubNames();
|
||||
for (const auto& subName : subNames) { // for every selected sub element
|
||||
bool addMe = true;
|
||||
for (auto itr = std::ranges::find(SubElements, subName); itr != SubElements.end();
|
||||
|
||||
Reference in New Issue
Block a user