[FEM] constraint contact: sort out already available function
additionally add some comments in TaskFemConstraint.cpp
This commit is contained in:
committed by
Bernd Hahnebach
parent
75d082cb1b
commit
520cfd8953
@@ -384,24 +384,6 @@ void TaskFemConstraintContact::removeFromSelectionMaster()
|
||||
updateUI();
|
||||
}
|
||||
|
||||
void TaskFemConstraintContact::setSelection(QListWidgetItem* item){
|
||||
std::string docName=ConstraintView->getObject()->getDocument()->getName();
|
||||
|
||||
std::string s = item->text().toStdString();
|
||||
std::string delimiter = ":";
|
||||
|
||||
size_t pos = 0;
|
||||
std::string objName;
|
||||
std::string subName;
|
||||
pos = s.find(delimiter);
|
||||
objName = s.substr(0, pos);
|
||||
s.erase(0, pos + delimiter.length());
|
||||
subName=s;
|
||||
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().addSelection(docName.c_str(),objName.c_str(),subName.c_str(),0,0,0);
|
||||
}
|
||||
|
||||
void TaskFemConstraintContact::onReferenceDeletedSlave() {
|
||||
TaskFemConstraintContact::removeFromSelectionSlave();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user