+ fix issues with force constraint
This commit is contained in:
parent
96e286a060
commit
71154f5f25
|
@ -309,7 +309,10 @@ const Base::Vector3d Constraint::getDirection(const App::PropertyLinkSub &direct
|
|||
return Base::Vector3d(0,0,0);
|
||||
std::string subName = names.front();
|
||||
Part::Feature* feat = static_cast<Part::Feature*>(obj);
|
||||
TopoDS_Shape sh = feat->Shape.getShape().getSubShape(subName.c_str());
|
||||
const Part::TopoShape& shape = feat->Shape.getShape();
|
||||
if (shape.isNull())
|
||||
return Base::Vector3d(0,0,0);
|
||||
TopoDS_Shape sh = shape.getSubShape(subName.c_str());
|
||||
gp_Dir dir;
|
||||
|
||||
if (sh.ShapeType() == TopAbs_FACE) {
|
||||
|
|
|
@ -142,7 +142,7 @@ void TaskFemConstraintForce::updateUI()
|
|||
else if (ref.substr(pos+1, 4) == "Edge")
|
||||
ui->labelForce->setText(tr("Force [N/mm]"));
|
||||
else if (ref.substr(pos+1, 4) == "Face")
|
||||
ui->labelForce->setText(tr("Force [N/mm²]"));
|
||||
ui->labelForce->setText(trUtf8("Force [N/mm\xc2\xb2]"));
|
||||
}
|
||||
|
||||
void TaskFemConstraintForce::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
|
|
|
@ -55,8 +55,6 @@ ViewProviderFemConstraintForce::~ViewProviderFemConstraintForce()
|
|||
|
||||
bool ViewProviderFemConstraintForce::setEdit(int ModNum)
|
||||
{
|
||||
Base::Console().Error("ViewProviderFemConstraintForce::setEdit(%u)\n", ModNum);
|
||||
|
||||
if (ModNum == ViewProvider::Default ) {
|
||||
// When double-clicking on the item for this constraint the
|
||||
// object unsets and sets its edit mode without closing
|
||||
|
|
Loading…
Reference in New Issue
Block a user